Welcome Guest Search | Active Topics | Sign In | Register

TreeView questions Options
ron
Posted: Tuesday, December 29, 2009 9:15:42 AM
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

eo_support
Posted: Tuesday, December 29, 2009 9:19:53 AM
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
ron
Posted: Tuesday, December 29, 2009 9:30:36 AM
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)...
eo_support
Posted: Tuesday, December 29, 2009 9:34:55 AM
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
ron
Posted: Tuesday, December 29, 2009 9:40:47 AM
Rank: Member
Groups: Member

Joined: 12/2/2009
Posts: 23
That did the trick...

Thanks...Ron


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.