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

Event Handlers in RadTreeView don't fire after CallBack

3 Answers 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jesse Lawler
Top achievements
Rank 1
Jesse Lawler asked on 25 Jun 2010, 05:01 AM
Here's a weird one. I've got a RadTreeView that works fine and has a few client-side EventHandlers hooked up.  However, when I reload the RadTreeView using a CallBack, suddenly no EventHandlers work.  As a matter of fact, nodes won't even expand/collapse, so it's not just that the custom EventHandlers I've added don't work, even the built-in ones are gone.

What's going on and how do I stop it?

                                                        <telerik:RadTreeView  
                                                            RunAt="server"  
                                                            ID="RadTreeView1"  
                                                            OnClientNodeClicking="nodeClicking" 
                                                            EnableDragAndDrop="true" 
                                                            OnNodeDrop="RadTreeView1_HandleDrop" 
                                                            EnableDragAndDropBetweenNodes="true"
                                                            <DataBindings> 
                                                                <telerik:RadTreeNodeBinding  
                                                                    TextField="listitemName" 
                                                                    ValueField="listitemID" 
                                                                    /> 
                                                                <telerik:RadTreeNodeBinding  
                                                                    Depth="0"  
                                                                    TextField="listitemName"  
                                                                    ValueField="listitemID" 
                                                                    Expanded="true" 
                                                                    CssClass="rootNode"  
                                                                    /> 
                                                            </DataBindings> 
                                                        </telerik:RadTreeView> 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Jun 2010, 08:23 AM
Hello Jesse,

Could you please check whether you receive any javascript errors? How exactly the treeview is reloaded? Please send us more details so we to be able to reproduce the problem. Thanks

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jesse Lawler
Top achievements
Rank 1
answered on 26 Jun 2010, 01:25 AM
I was reloading it with a ComponentArt CallBack control.  When I switched to the Telerik RadAjax method of reloading, the problem went away.  Maybe ComponentArt has a sneaky way of sabotaging embedded Telerik controls (and vice versa?)!


0
Yana
Telerik team
answered on 28 Jun 2010, 01:48 PM
Hi Jesse Lawler,

I'm glad that the issue is fixed now.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Jesse Lawler
Top achievements
Rank 1
Answers by
Yana
Telerik team
Jesse Lawler
Top achievements
Rank 1
Share this question
or