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

Fire OnClientNodeClicked from code

1 Answer 120 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jacky Chau
Top achievements
Rank 1
Jacky Chau asked on 01 Aug 2008, 10:21 PM
When I call node.select() on the client side, it doesn't fire the OnClientNodeClicked event.  Is there a way to raise that event when I programmatically select a node? 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Aug 2008, 08:08 AM
Hello Jacky Chau,

The nodeClicked event is fired only during user interaction. As a result calling the select method from code will not trigger the nodeClicked event. I suggest you extract the logic in the event handler in a separate method and invoke that method after calling "select".

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Jacky Chau
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or