Need to call onClientNodeClicking from onClientLoad

2 posts, 0 answers
  1. Sri
    Sri avatar
    22 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    I have a requirement to invoke onClientNodeClicking event from onClientLoad event. How can I do that?
    I am managing the toolbar buttons in the onClientNodeClicking event and it works fine when the User clicks on any Node in the TreeView.
    The issue is when the page loads for the first time, I am loading the Default Nodes in the Tree using the Server side code and need to raise "onClientNodeClicking" in the client. How can we do this? Doesnt want to duplicate the code in the server side and in the client side.
    Thanks
    Sri K Gamini.
  2. Sri
    Sri avatar
    22 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    Never mind. I got the solution for this.
    Invoked the event using the following:

    OnNodeClicking(sender,

    new Telerik.Web.UI.RadTreeNodeEventArgs(tree.get_nodes().getNode(0)));

     

Back to Top