EasyUI Forum
May 16, 2024, 04:00:35 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 dynamically change data  (Read 6127 times)
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« on: July 28, 2015, 01:18:40 AM »

My data for treegrid looks like this:
$scope.assets = { total: rows.length, rows: rows };

At some point I am adding more elements to $scope.assets.rows but I dont see new data in the treegrid. Should I refresh it somehow?

Thanks
Logged
battlezad
Newbie
*
Posts: 44


View Profile
« Reply #1 on: July 28, 2015, 08:54:52 AM »

Reload treegrid data. If the 'id' parameter is passed, reload the specified tree row, otherwise reload all tree rows.

Code example:

$('#tt').treegrid('reload', 2);   // reload the row which value is equals to 2
$('#tt').treegrid('reload');   // reload the all rows
$('#tt').treegrid('reload', {id:2, q:'abc'});  // reload the specified row with 'q' parameter passing to server
Logged
zolotoy
Jr. Member
**
Posts: 89


View Profile Email
« Reply #2 on: July 28, 2015, 08:58:25 AM »

Nope, reloading is not helping.
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!