Serenity: Hide paging, search and sorting serenity in grid

Created on 22 May 2019  路  1Comment  路  Source: serenity-is/Serenity

How to Hide paging, search and sorting serenity in grid and at which place needs to update code for same.

Most helpful comment

Hi @nareshIntelegain,

To hide grid pager, update grid.ts file:

protected usePager() {
    return false;
}

To remove searchbox, you also need to update grid.ts file:

protected createQuickSearchInput() {

}

About sorting, add [Sortable(false)] attribute on fields you want, either Row.cs or Column.cs

>All comments

Hi @nareshIntelegain,

To hide grid pager, update grid.ts file:

protected usePager() {
    return false;
}

To remove searchbox, you also need to update grid.ts file:

protected createQuickSearchInput() {

}

About sorting, add [Sortable(false)] attribute on fields you want, either Row.cs or Column.cs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

newyearsoft picture newyearsoft  路  3Comments

ahsansolution picture ahsansolution  路  3Comments

kilroyFR picture kilroyFR  路  3Comments

dkontod picture dkontod  路  3Comments

Shraddha996 picture Shraddha996  路  3Comments