Serenity: How to add / remove a grid column only in the extended dialog grid?

Created on 4 Oct 2018  路  4Comments  路  Source: serenity-is/Serenity

I have an extended grid screen of a standard GRID of Serenity.

I would like to add / hide new columns only on the extended screen.

image

Most helpful comment

getColumns() {
return super.getColumns().filter(x => x.field != "SomeField")
}

All 4 comments

well u either make two Column files, or you add all the fields into parent's Columns.cs, and hide them in parent's Grid.ts

Thanks @ga5tan , but my question is which command to hide the columns of the extended grid. This I have not found yet.

getColumns() {
return super.getColumns().filter(x => x.field != "SomeField")
}

Thanks @volkanceylan , worked properly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stepankurdylo picture stepankurdylo  路  3Comments

ahsansolution picture ahsansolution  路  3Comments

JohnRanger picture JohnRanger  路  3Comments

dkontod picture dkontod  路  3Comments

john20xdoe picture john20xdoe  路  3Comments