EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on October 30, 2011, 11:50:31 PM



Title: TreeGrid: how to call beginEdit/endEdit on all loaded rows?
Post by: mzeddd on October 30, 2011, 11:50:31 PM
Is it possible?


Title: Re: TreeGrid: how to call beginEdit/endEdit on all loaded rows?
Post by: aswzen on August 06, 2014, 08:30:41 PM
same problem here... :(


Title: Re: TreeGrid: how to call beginEdit/endEdit on all loaded rows?
Post by: jarry on August 07, 2014, 02:07:40 AM
Get all the loaded rows and then call 'beginEdit' method on these rows. The code below shows how to get all the loaded rows.
Code:
var tg = $('#tg');
$.map(tg.treegrid('getRoots'), function(root){
//...
var rows = tg.treegrid('getChildren', root.id);
$.map(rows, function(row){
//...
})
});