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

[Solved] Need to call onClientNodeClicking from onClientLoad

1 Answer 75 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sri
Top achievements
Rank 1
Sri asked on 25 Jun 2009, 11:29 AM
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.

1 Answer, 1 is accepted

Sort by
0
Sri
Top achievements
Rank 1
answered on 25 Jun 2009, 01:49 PM
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)));

 

Tags
TreeView
Asked by
Sri
Top achievements
Rank 1
Answers by
Sri
Top achievements
Rank 1
Share this question
or