EasyUI Forum
May 20, 2024, 03:11:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TreeGrid: how to call beginEdit/endEdit on all loaded rows?  (Read 10933 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: October 30, 2011, 11:50:31 PM »

Is it possible?
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #1 on: August 06, 2014, 08:30:41 PM »

same problem here... Sad
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #2 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){
//...
})
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!