|
Rank: Member Groups: Member
Joined: 12/2/2009 Posts: 23
|
Hi,
I am using the TreeView control and I have not figured out how to do the following:
Alpha sort on item text when dropping. Generate a postback on drop (ItemMoved).
Thanks...Ron
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The TreeView doesn't have any built-in support for that. It only tells you that the node has been dropped (through ClientSideOnDragDrop), you can handle that and then post the page back to the server, then recreate all the nodes on the server in the right order. You can not do it on the client side.
Thanks
|
|
Rank: Member Groups: Member
Joined: 12/2/2009 Posts: 23
|
OK -
I am using ClientSideOnDrop to "hit" the save button, but the drop is not showing up when I get the Save button click event. What do I need to do to let the drop complete BEFORE my client function is called (or can I call something myself)...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Have you tried to use setTimeout to delay "hitting" your save button? It will be something like this:
Code: JavaScript
setTimeout(function()
{
HitYourSaveButton();
}, 100);
That way the drop should complete before the timer gets back to call your HitYourSaveButton function. Thanks
|
|
Rank: Member Groups: Member
Joined: 12/2/2009 Posts: 23
|
That did the trick...
Thanks...Ron
|
|