EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 08, 2024, 02:04:52 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Treegrid dynamically change data
Pages: [
1
]
« previous
next »
Print
Author
Topic: Treegrid dynamically change data (Read 6465 times)
zolotoy
Jr. Member
Posts: 89
Treegrid dynamically change data
«
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
Re: Treegrid dynamically change data
«
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
Re: Treegrid dynamically change data
«
Reply #2 on:
July 28, 2015, 08:58:25 AM »
Nope, reloading is not helping.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...