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

ContextMenu not firing server events with IE9

2 Answers 91 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Zoltan
Top achievements
Rank 1
Zoltan asked on 02 Apr 2012, 09:32 AM

I have used a RadTreeView control in an aspx page, where the Root element has been associated an "Add " context menu.

While the ContextMenuItemClick event is fired on the server side when viewed from Opera 11, Firefox 11, Chrome 17, Internet Explorer 8, it does not fire when viewed from Internet Explorer 9 - it only adds a # tag at the end of the URL and no PostBack is executed.

I have tried to set the PostBack property of the Context menu item to true, to false - to no avail.

Please let me know if there is something that I am missing.

Thank you.
Zoltan

PS. Below is the mark-up used in my page:

<telerik:RadTreeView ID="CollectiveNameTree" runat="server"
    EnableDragAndDrop="true"
    EnableDragAndDropBetweenNodes="true"
    MultipleSelect="false"
    EnableViewState="true"
    OnNodeEdit="CollectiveNameTree_NodeEdit"
    OnClientNodeEditing="onClientNodeEditing"
    OnNodeDrop="CollectiveNameTree_HandleDrop"
    OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
    OnClientContextMenuShowing="onClientContextMenuShowing"
    OnClientDoubleClick="onClientNodeDoubleClicking"
    OnClientNodeDragStart="onClientNodeDragStart"
    OnClientNodeDropping="onClientNodeDropping"
    OnClientNodeDragging="onClientNodeDragging"
    >
    <WebServiceSettings Path="~/WebServices/Substances.asmx" Method="GetTreeViewCategories" />
    <Nodes>
        <telerik:RadTreeNode Text="<%$ Resources:Buttons,ClassificationsRootNodeTitle %>" PostBack="true"
            Expanded="false" ExpandMode="WebService" Value="1" ContextMenuID="RootContextMenu" />
    </Nodes>
    <ContextMenus>
        <telerik:RadTreeViewContextMenu ID="RootContextMenu" runat="server">
            <Items>
                <telerik:RadMenuItem Value="AddClassification"
                    Text="<%$ Resources:Buttons,AddClassification %>" />
            </Items>
        </telerik:RadTreeViewContextMenu>
    </ContextMenus>
</telerik:RadTreeView>

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 05 Apr 2012, 07:55 AM
Hi Zoltan,

 
I have inspected the issue by adding the code that you provided to our online demo but could not observe the described unusual behavior. Here you can see a video of my test in IE(. Please review it and let me know if I am not testing properly or if I have to add some additional code in order to observe the same behavior.

All the best,
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
Zoltan
Top achievements
Rank 1
answered on 15 May 2012, 09:21 AM

Hi Plamen,

It seems my issue was occuring due to an older version of the Telerik TreeView. Thank you for testing the issue.

With kind regards,

Zoltan

Tags
TreeView
Asked by
Zoltan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Zoltan
Top achievements
Rank 1
Share this question
or