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

Problem with events

3 Answers 44 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Donatien
Top achievements
Rank 1
Donatien asked on 12 Oct 2011, 03:37 PM
Hello,

I have a problem with my treeview events :

Normaly, the clickNode event is fired before the dataBound event.
But sometimes, it is the dataBound event which is fired before the clickNode.

Is there a solution to force clickNode first?


Donatien

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 13 Oct 2011, 03:47 PM
Hello Donatien,

It is not very clear in which exactly case are you observing this behaviour and which events are you getting. I have tested in the general case when you click the node only the server "RadTreeView_NodeClick" is raised.

Kind regards,
Plamen Zdravkov
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
0
Donatien
Top achievements
Rank 1
answered on 13 Oct 2011, 04:29 PM
Hello,

When I populate theTreeView with an XML file and I set the NavigateUrlField there were two events which are fired when I click on the node.
The first one is NodeClick and the second is NodeDataBound.


I don't know why but sometimes the event NodeDataBound is fired first... 
And this is arrive randomly...
0
Plamen
Telerik team
answered on 18 Oct 2011, 12:00 PM
Hi Donatien,

I inspected the issue by using the project that I am sending you and all the times after clicking only the NodeClick fired. If you are still observing this strange behaviour please let me know what should I change in the application in order to observe it.

Hope this will be helpful.
 
Kind regards,
Plamen Zdravkov
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
Tags
TreeView
Asked by
Donatien
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Donatien
Top achievements
Rank 1
Share this question
or