Jump to content

How To make dynamic Tree from TUniTreeView node expand?


rgreat

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...