rgreat Posted December 3, 2015 Share Posted December 3, 2015 Usually i catch onNodeExpand method and add subnodes there. But TUniTreeView does not have such method. I figured i nee to use TUniTreeView.ClientEvents.ExtEvents. After some blind man tries i produced this weird code: function itemexpand(sender, eOpts) { for (var i=0;i<sender.stores.length;i++) { if (sender.stores[i].hasOwnProperty("nm")) { ajaxRequest(sender.stores[i],'expand',['internalId='+sender.internalId]); break; } } } But it does not work consistently. Now I'm kind of lost on what to do. Quote Link to comment Share on other sites More sharing options...
rgreat Posted December 4, 2015 Author Share Posted December 4, 2015 sender.internalId does not always corresponds with TTreeNode.AbsoluteIndex; Quote Link to comment Share on other sites More sharing options...
DFong Posted December 4, 2015 Share Posted December 4, 2015 see my reply to you regarding capturing the expand action Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.