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

[Solved] Select(), disable AfterClientClick

1 Answer 138 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Thomas Polan
Top achievements
Rank 1
Thomas Polan asked on 27 Feb 2008, 05:15 PM
In a javascript function, I am selecting a node based on user input using node.Select().  When this happens, the AfterClientClick is fired, just as if the user clicked on it.  Is there a way to not run the AfterClientClick function when node.Select() is called programmably?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 28 Feb 2008, 08:32 AM
Hello Thomas Polan,

In the event handler of the AfterClientClick event you can check whether the node has been selected and skip calling the Select() method:

if(!node.get_selected)
  node.select();

Hope this helps.


Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Thomas Polan
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or