EasyUI Forum
April 28, 2024, 04:09:48 AM *
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  (Read 4265 times)
MFS
Newbie
*
Posts: 47



View Profile
« on: October 10, 2017, 12:15:27 PM »

Hello.
How to make in treegrid that the first row be selected after load?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: October 11, 2017, 06:36:02 AM »

Please look at this code:

Code:
$('#tg').treegrid({
onLoadSuccess: function(parent,data){
var root = $(this).treegrid('getRoot');
$(this).treegrid('select',root.guid);
}
})
Logged
MFS
Newbie
*
Posts: 47



View Profile
« Reply #2 on: October 16, 2017, 12:17:50 AM »

This code dosnt work.
Can you give to me some sample where I can see how it works?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: October 16, 2017, 01:36:51 AM »

Please look at this example http://code.reloado.com/apelal4/2/edit#preview
Logged
MFS
Newbie
*
Posts: 47



View Profile
« Reply #4 on: October 16, 2017, 02:32:53 AM »

I found error in my code.
This is ok.
Thanks.
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!