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

RadTreeViewContextMenu will not submit

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 08 Feb 2011, 07:48 PM
I have the following code in my aspx page for the RadTreeViewContext Menu. It is simple code. For some reason when I click on a node and the menu comes up I click on a menu item but the page will NOT submit. The context menu item does nothing when I click it. Any ideas. Please see code below it is simple code ...

<telerik:RadTreeView ID="RadTreeView1" Runat="server">
  
     <ContextMenus>
       <telerik:RadTreeViewContextMenu OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" runat="server" ID="HelpDeskMenu"  ClickToOpen="True" Skin="Vista">
           <Items>
           <telerik:RadMenuItem Text="Add Lesson Component" Value="xyz"></telerik:RadMenuItem>
           </Items>                      
       </telerik:RadTreeViewContextMenu>
   </ContextMenus>
  
   </telerik:RadTreeView>
  
  
// CODE TO POPULATE TREE 
  
  RadTreeNode node = new RadTreeNode("Test Google");
              
                   RadTreeNode node2 = new RadTreeNode("Test Google 2");
                   RadTreeView1.Nodes.Add(node);
            RadTreeView1.Nodes.Add(node2);

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Feb 2011, 12:55 PM
Hi Jon,

I guess that the reason for this is that you've set ClickToOpen property of the contextmenu - it should be false. Generally you cannot have both this property and click events, because they respond to the same user action.

Best wishes,
Yana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or