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

Radwindow with Treeview

1 Answer 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Girish
Top achievements
Rank 1
Girish asked on 25 Mar 2012, 05:56 AM
Hi guys,

I have multiple treeview controls created dynamically. On dragging n dropping each node, i have to open a pop up window. Iam using the following line of code to hook a javascript event handler to the OnClientNodeDropped event of the tree node from c# code behind.

tree.trvEvents.OnClientNodeDropped = "ClientNodeDropped();return false;";

But the above line givess me the following error in mozilla.

missing } after property list
..., {"nodeDropped":ClientNodeDropped();return false;},


Iam stuck with this issue for the past 2 days. Please help me with a solution.


Girish

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 27 Mar 2012, 05:02 PM
Hi,

When you add event handler function for client events from code behind you should pass only the name of the function as a parameter as shown below:
tree.trvEvents.OnClientNodeDropped = "ClientNodeDropped";


Regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Girish
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or