admin管理员组文章数量:1414908
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 badges1 Answer
Reset to default 5You 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"));
本文标签: javascriptHow to find all the expanded or collapsed rows in Kendo UI grid hierarchyStack Overflow
版权声明:本文标题:javascript - How to find all the expanded or collapsed rows in Kendo UI grid hierarchy? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745163044a2645535.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论