javascript - How to find all the expanded or collapsed rows in Kendo UI grid hierarchy? - Stack Overflow

How to find all the expanded or collapsed rows in Kendo UI grid hierarchy?I can find the count of all

How to find all the expanded or collapsed rows in Kendo UI grid hierarchy? I can find the count of all the masterrow using below code but I want to interate through each and check which all are expanded.

var grid = $("#gridList").data("kendoGrid");
var allMasterRows = grid.tbody.find('>tr.k-master-row') 

I have tried below code but it does not work

var strPlus = (grid.tbody.find("k-icon k-plus"));

Please suggest.

How to find all the expanded or collapsed rows in Kendo UI grid hierarchy? I can find the count of all the masterrow using below code but I want to interate through each and check which all are expanded.

var grid = $("#gridList").data("kendoGrid");
var allMasterRows = grid.tbody.find('>tr.k-master-row') 

I have tried below code but it does not work

var strPlus = (grid.tbody.find("k-icon k-plus"));

Please suggest.

Share Improve this question edited May 28, 2015 at 17:12 Piyush asked May 28, 2015 at 16:38 PiyushPiyush 4291 gold badge13 silver badges24 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

You can use these to find the expanded or collapsed rows:

var expandedRows = $('.k-detail-row:visible');
var collapsedRows = $('.k-detail-row:hidden');

If you're looking for the icons, your selector is off...it should be:

var strPlus = (grid.tbody.find(".k-icon.k-plus"));

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745163045a4614486.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信