Radwindow with Treeview

2 posts, 0 answers
  1. Girish
    Girish avatar
    4 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2012 Link to this post

    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
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 27 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top