|
Title: Treegrid dynamically change data Post by: zolotoy 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 Title: Re: Treegrid dynamically change data Post by: battlezad 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 Title: Re: Treegrid dynamically change data Post by: zolotoy on July 28, 2015, 08:58:25 AM Nope, reloading is not helping.
|