May 26, 2016, 3:36 AM
[CLOSED] Context Menu popup issue
Support,
My issue is that when a context opens, if you click to close a submenu, you cannot reopen it unless you move the mouse in an out.
see example below.
to reproduce.
1. right click on grid
2. move the mouse over the word "test" and wait for the submenu to appear
3. When the "Choose an option" submenu appears, click once (dont move the mouse). we see the submenu disappears.
4. Now click again and it should be expected that the submenu will reappear. However, it does not and there is no way to get the submenu to appear without moving the mouse out of the control and back in.
Thanks,
/Z
My issue is that when a context opens, if you click to close a submenu, you cannot reopen it unless you move the mouse in an out.
see example below.
to reproduce.
1. right click on grid
2. move the mouse over the word "test" and wait for the submenu to appear
3. When the "Choose an option" submenu appears, click once (dont move the mouse). we see the submenu disappears.
4. Now click again and it should be expected that the submenu will reappear. However, it does not and there is no way to get the submenu to appear without moving the mouse out of the control and back in.
Thanks,
/Z
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Menu bug</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
<Items>
<ext:GridPanel
ID="GridPanel1"
runat="server"
Title="Test"
EmptyText="test"
ColumnLines="true"
ContextMenuID="MenuRightClick"
Layout="FitLayout">
<Store>
<ext:Store ID="Store1" runat="server" AutoLoad="false">
<Proxy>
<ext:AjaxProxy Url="/ta/Support/test">
<ActionMethods READ="GET" />
<Reader>
<ext:JsonReader IDProperty="id" RootProperty="data" TotalProperty="total"/>
</Reader>
</ext:AjaxProxy>
</Proxy>
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="TaskID">
<Fields>
<ext:ModelField Name="ProjectID" Type="Int" />
<ext:ModelField Name="Name" />
<ext:ModelField Name="TaskID" Type="Int" />
<ext:ModelField Name="Description" />
<ext:ModelField Name="Estimate" Type="Int" />
<ext:ModelField Name="Rate" Type="Float" />
<ext:ModelField Name="Cost" Type="Float" />
<ext:ModelField Name="Due" Type="Date" />
</Fields>
</ext:Model>
</Model>
<Listeners>
<Load Handler="Ext.net.Mask.show();" Delay="5000" />
</Listeners>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1"
runat="server"
TdCls="task"
Text="Task"
Sortable="true"
DataIndex="Description"
Hideable="false"
Width="300">
</ext:Column>
<ext:Column ID="Column2" runat="server" Text="Project" DataIndex="Name" Width="180" />
<ext:DateColumn ID="DateColumn1"
runat="server"
Width="130"
Text="Due Date"
Sortable="true"
DataIndex="Due"
Format="MM/dd/yyyy">
</ext:DateColumn>
<ext:Column ID="Column3"
runat="server"
Width="130"
Text="Estimate"
Sortable="true"
DataIndex="Estimate">
</ext:Column>
<ext:Column ID="Column4"
runat="server"
Width="130"
Text="Rate"
Sortable="true"
DataIndex="Rate">
</ext:Column>
<ext:Column
runat="server"
Width="130"
ID="Cost"
Text="Cost"
Sortable="false"
Groupable="false"
DataIndex="Cost">
</ext:Column>
</Columns>
</ColumnModel>
<View>
<ext:GridView ID="GridView7" runat="server" StripeRows="true" EmptyText="No Data"/>
</View>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Single" />
</SelectionModel>
</ext:GridPanel>
</Items>
</ext:Viewport>
<ext:Menu ID="MenuRightClick" runat="server">
<Listeners>
<Show Handler="Ext.QuickTips.getQuickTip().hide();" />
</Listeners>
<Items>
<ext:MenuItem ID="test" Icon="Clock" runat="server" Text="test" HideOnClick="false">
<Menu>
<ext:Menu ID="test4" runat="server">
<Items>
<ext:Label ID="test44" runat="server" Html="<b class='menu-title'>Choose a Option</b>" />
<ext:CheckMenuItem ID="sdfdf" runat="server" Icon="CalendarStar" Text="sdfsdf" Group="theme">
<Listeners>
<Click Handler="alert('test');" />
</Listeners>
</ext:CheckMenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</Items>
</ext:Menu>
</form>
</body>
</html>