EasyUI Forum
December 21, 2025, 02:06:25 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: Expend a specific node in TreeGrid  (Read 13635 times)
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« on: July 22, 2015, 07:55:52 AM »

I am trying to programmatically open first node in the treegrid after having all nodes collapsed.
Here is my code.
In directive as the last line in Link finction:
Code:
scope.assetTree = $(elem);

In controller when data has been received:
Code:
$scope.assetTree.treegrid('expand', 1);

Nothing happens, the first node is not expended.

Please help.

Thanks
Logged
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« Reply #1 on: July 22, 2015, 08:23:52 AM »

Check if the id of your first node is really 1...
Logged
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« Reply #2 on: July 22, 2015, 08:41:30 AM »

Console shows it as "1". I tried it too, same.
Logged
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« Reply #3 on: July 22, 2015, 11:44:42 AM »

Do you test as String, say '1'...
Logged
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« Reply #4 on: July 22, 2015, 11:55:49 AM »

I tried both a number and a string. The result is very consistent - nothing.
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!