EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mars610 on October 30, 2011, 08:18:15 AM



Title: treegrid select one row
Post by: mars610 on October 30, 2011, 08:18:15 AM
I want to use treegrid for the use of a line similar to the method  'selectRow' of datagrid  selected, if treegrid not provide such API?

code :
$('#tt').datagrid('selectRow',index);

but

$('#tt').treegrid('selectRow',index)

the red color code is not work.


Title: Re: treegrid select one row
Post by: stworthy on October 30, 2011, 06:21:31 PM
Many methods of treegrid are similar to tree, please use the 'select' method:

$('#tt').treegrid('select', id);


Title: Re: treegrid select one row
Post by: mars610 on November 03, 2011, 03:17:44 AM
thinks