EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MFS on October 10, 2017, 12:15:27 PM



Title: Treegrid
Post by: MFS on October 10, 2017, 12:15:27 PM
Hello.
How to make in treegrid that the first row be selected after load?


Title: Re: Treegrid
Post by: jarry 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);
}
})


Title: Re: Treegrid
Post by: MFS 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?


Title: Re: Treegrid
Post by: jarry on October 16, 2017, 01:36:51 AM
Please look at this example http://code.reloado.com/apelal4/2/edit#preview


Title: Re: Treegrid
Post by: MFS on October 16, 2017, 02:32:53 AM
I found error in my code.
This is ok.
Thanks.