EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 16, 2025, 01:07:36 PM
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 expandTo
Pages: [
1
]
« previous
next »
Print
Author
Topic: treegrid expandTo (Read 11183 times)
crosemffet
Jr. Member
Posts: 68
treegrid expandTo
«
on:
April 06, 2013, 04:44:13 AM »
I'm trying to make a function to expand my treegrid to specific node, based on the result of the post.
sometimes works, and sometimes not..
what's wrong...?
function getLastState(){
$.post('jq-ajaxJson.php?action=getLastState', function(data) {
$('#tg').treegrid('expandTo', data);
$('#tg').treegrid('expand', data);
});
}
thanks in advance.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: treegrid expandTo
«
Reply #1 on:
April 08, 2013, 07:02:03 PM »
When calling 'expandTo' method, the node id value should be passed to expand and scroll to that node. If the specified node is not exists, the expanding action will fail. Be sure to confirm if the 'data' returned from your 'jq-ajaxJson.php' is correct.
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...