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

Server Side Events Not Firing

3 Answers 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Thomas Salt
Top achievements
Rank 1
Thomas Salt asked on 11 Dec 2008, 09:34 PM
I moved from the old radTreeView (pre Asp.Net AJAX) to the most recent releases (Nov 2008) version of the TreeView.  I have followed your examples how how to migrate, and most everything went smoothly.  However, I can not get my server side events to fire.  For example I have an OnContextMenuItemClick hooked into a server side event RadTreeView_NodeContextClick(ByVal o as Object, e as Telerik.Web.UI.RadTreeViewContextMenuEventArgs. 

I have checked the names in my .aspx page with the ones in the code behind and made sure the signature for the code behind event is correct.  The page builds without errors.  I do not get any javascript errors either. 

Do you have any thoughts as to what I may be missing?  Thank you.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Dec 2008, 02:52 PM
Hello Thomas,

Please check the attached sample project which demonstrates OnContextMenuItemClick event. Download it and give it a try.

Kind regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Thomas Salt
Top achievements
Rank 1
answered on 12 Dec 2008, 03:29 PM
I guess I should have explained more clearly.   I'm loading XML files as the context menus.  The TreeView is also located within a formview control so I cannot access the TreeView directly in the code behind.  Thus the Handles RadTreeView1... Sub will not work for me.

Also, it's not only the ContextMenuClick Server side event that isn't firing.  None of the events are firing.  The DragDrop events do not fire on the server side either.  Do you have an example where you explicitly set the events that should be firing?  IE: 
<telerik:RadTreeView OnNodeDrop="RadTreeView1_MyDropEvent" ... 
Protected Sub RadTreeView1_MyDropEvent(ByVal o As ObjectByVal e As Telerik.Web.UI.RadTreeNodeDragDropEventArgs)  
 
'SOME CODE HERE  
 
End Sub 

The above is generally what my code looks like and I cannot get the RadTreeView1_MyDropEvent to fire.  The client side seems to be working fine as I can drag/drop nodes.

0
Yana
Telerik team
answered on 15 Dec 2008, 01:28 PM
Hello Thomas,

Please modify the provided saple project so we to be able to observe the problem. Thanks i advance

Best wishes,
Yana
the Telerik team

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