Title: treegrid expandTo Post by: crosemffet 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. Title: Re: treegrid expandTo Post by: stworthy 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.
|