简体   繁体   中英

Kendo-grid hide row (Angular 2)

Does the kendo-grid (Angular 2) provide a way to hide specific rows. (eg [rowClass]="rowCallback" ). I would like to check a certain bool property of the binding item and based on the value show or hide the row.

The most straight-forward approach would be to either filter the data before hand, or provide an initial filter descriptor for the Grid, eg:

Preprocess the data example

Provide an initial filter

You can also use the rowClass callback to add a custom class to the respective grid rows based on some data item property (available as args.dataItem):

Hide via RowClass

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM