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

[Solved] Double click a node and add the node to a grid

3 Answers 124 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bexm
Top achievements
Rank 1
Bexm asked on 17 Jan 2008, 09:36 AM
Hello!

I am currently following your drag and drop example and it works really well,
but I want to give my users the option of either being able to drag and drop nodes onto a grid, or just double clicking it and it will automatically go straight a grid.

I know I can use, "onClientDoubleClick" but how do I make this run the handledrop function?

Thanks

Bex

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Jan 2008, 09:19 AM
Hi Bexm,

I am afraid that this would not be possible.

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bexm
Top achievements
Rank 1
answered on 18 Jan 2008, 09:28 AM
Hello

Thanks for the reply! How does it pick up the dropping then isn't it using javascript? can this not some how just be used in the double click?

Bex
0
Nikolay
Telerik team
answered on 18 Jan 2008, 11:29 AM
Hi Bexm,

The Drag And Drop to grid example uses the OnClientNodeDropping event that is fired prior to the server NodeDrop event. The OnClientDoubleClicking event is fired separately from the client and server events related to the Drag And Drop operation. Therefore, you cannot force a drag and drop upon double clicking a node.

Sincerely yours,
Nick
the Telerik team

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