Server Side Events Not Firing

4 posts, 0 answers
  1. Thomas Salt
    Thomas Salt avatar
    136 posts
    Member since:
    Apr 2005

    Posted 11 Dec 2008 Link to this post

    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.
  2. Yana
    Admin
    Yana avatar
    4813 posts

    Posted 12 Dec 2008 Link to this post

    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.
  3. Thomas Salt
    Thomas Salt avatar
    136 posts
    Member since:
    Apr 2005

    Posted 12 Dec 2008 Link to this post

    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.

  4. Yana
    Admin
    Yana avatar
    4813 posts

    Posted 15 Dec 2008 Link to this post

    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.
Back to Top