EasyUI Forum
April 29, 2024, 11:27:20 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 select one row  (Read 14496 times)
mars610
Newbie
*
Posts: 13


View Profile Email
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
Logged
mars610
Newbie
*
Posts: 13


View Profile Email
« Reply #2 on: November 03, 2011, 03:17:44 AM »

thinks
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!