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

dkontod picture dkontod  路  3Comments

Pinellus picture Pinellus  路  3Comments

stepankurdylo picture stepankurdylo  路  3Comments

ga5tan picture ga5tan  路  3Comments

Amitloh picture Amitloh  路  3Comments