[英]Kendo-grid hide row (Angular 2)
Does the kendo-grid (Angular 2) provide a way to hide specific rows. kendo-grid(角度2)是否提供隐藏特定行的方法。 (eg
[rowClass]="rowCallback"
). (例如
[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. 我想检查绑定项目的某个bool属性,并根据值显示或隐藏行。
The most straight-forward approach would be to either filter the data before hand, or provide an initial filter descriptor for the Grid, eg: 最简单的方法是事先过滤数据,或为Grid提供初始过滤器描述符,例如:
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): 您还可以使用rowClass回调将自定义类添加到基于某些数据项属性(以args.dataItem提供)的相应网格行中:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.