This is a migrated thread and some comments may be shown as answers.

Help with Drag & Drop and to disable navigateUrl

2 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Clyde
Top achievements
Rank 1
Clyde asked on 22 May 2008, 09:52 PM
Hi,

I am attempting to create a menu maintenance page that allows an admin to rearrange the menu with drag and drop of the nodes within the treeview. The treeview is loaded from a sitemap table and written back in it's entirity during the save.

First question: How can I disable the NavigateURL mode? I could just leave it off the bind, but I need the URL to rewrite out the structure once the menu has been rearranged. Is there a way? I would rather not have the user navigating away while they try and move menu items around.

Second question: When dragging and dropping a node using the code from your demo, it loses the NavigateURL field. Can this attribute be moved during a drag & drop operation especially between two separate treeviews? If so, can you assist with pointing me in the right direction.

Many thanks for the help as well as a great product,

Clyde


2 Answers, 1 is accepted

Sort by
0
Clyde
Top achievements
Rank 1
answered on 23 May 2008, 01:18 AM
Hi Again,

Okay, made a little progress with a bit of a workaround I think will work. The navigateUrl attribute doesn't tranfer over in drag and drop, but the value field does. I have decided to use that to hold the URL. It actually solves both my problems, there is now no longer a hyperlink on each node.

This is solved for now, but I would still like to see the ability to switch off a hyperlink on a node and also to see other attributes come across in drag&drop.

Thanks again,
Clyde
0
Veselin Vasilev
Telerik team
answered on 26 May 2008, 01:22 PM
Hello Clyde,

You can subscribe to the OnClientNodeClicking event and cancel the event.

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Clyde
Top achievements
Rank 1
Answers by
Clyde
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or