Nov 30, 2009, 2:45 AM
How to get and show/open menu?
Hello,I have made a menu like this:
And want to show it when right click event is fired on google map at cursor coordinates...I have also made the google map event and just want to show/open my menu. I have tried to get menu object but nothing is working.
Ext.get('MapContextMenu') is giving me 'null'
Ext.getCmp('MapContextMenu') is giving me 'undefined'
Please help how to get and show menu?
<ext:Menu ID="MapContextMenu" runat="server" Enabled="true" Visible="true" EnableViewState="true">
<Items>
<ext:TextMenuItem Text="Selected Vehicles" />
<ext:MenuItem ID="PlayRouteHistoryMenuItem" Text="Play Route History" />
<ext:MenuItem ID="CurrentLocationMenuItem" Text="Current Location" />
<ext:MenuSeparator />
<ext:MenuItem ID="ShowAllVehiclesMenuItem" Text="Show All Vehicles" />
</Items>
</ext:Menu>
And want to show it when right click event is fired on google map at cursor coordinates...I have also made the google map event and just want to show/open my menu. I have tried to get menu object but nothing is working.
Ext.get('MapContextMenu') is giving me 'null'
Ext.getCmp('MapContextMenu') is giving me 'undefined'
Please help how to get and show menu?