Dec 26, 2012, 5:54 AM
-
-
Jan 02, 2013, 12:38 PMUnfortunately i was not able to reproduce the issue by doing the following:
Please post a complete (but simplified) code sample demonstrating how to reproduce the issue.<!DOCTYPE html> <html> <head id="Head1" runat="server"> <title>Index</title> </head> <body> <ext:ResourceManager ID="ResourceManager1" runat="server" /> <ext:Desktop ID="Desktop1" runat="server"> <Modules> <ext:DesktopModule ModuleID="Hello" AutoRun="true"> <Window> <ext:Window ID="Window1" runat="server" Plain="true" Padding="10" Width="150" Height="100" Title="Greeting" CloseAction="Destroy" Maximizable="false" Minimizable="false"> <Content> Welcome to Ext.Net desktop! </Content> </ext:Window> </Window> </ext:DesktopModule> </Modules> <TaskBar TrayWidth="100"> <QuickStart> <ext:Toolbar runat="server"> <Items> <ext:Button runat="server" Icon="ApplicationTileVertical"> <QTipCfg Text="Tile windows" /> </ext:Button> <ext:Button runat="server" Icon="ApplicationCascade"> <QTipCfg Text="Cascade windows" /> </ext:Button> </Items> </ext:Toolbar> </QuickStart> </TaskBar> </ext:Desktop> </body> </html>
-
Jan 03, 2013, 5:03 AM
-
Jan 03, 2013, 10:38 AMTo accomplish it remove the following code:
<DesktopConfig> <ContextMenu> <ext:Menu runat="server"> <Items> <ext:MenuItem runat="server" Text="Change Settings" /> <ext:MenuSeparator runat="server" /> <ext:MenuItem runat="server" Text="Tile" Handler="tile" Icon="ApplicationTileVertical" /> <ext:MenuItem runat="server" Text="Cascade" Handler="cascade" Icon="ApplicationCascade" /> </Items> </ext:Menu> </ContextMenu> </DesktopConfig>
Last edited by RCN; Jan 03, 2013 at 10:40 AM. -
Jan 03, 2013, 11:09 AMPlease let me know whether it helped you.
-
Jan 03, 2013, 12:53 PM
-
Jan 04, 2013, 12:12 PMHi everybody,
There is also ShortcutContextMenu. Maybe, it helps.
Example
<ext:Desktop runat="server"> <DesktopConfig> <ShortcutContextMenu>...</ShortcutContextMenu> </DesktopConfig> </ext:Desktop>
-
Jan 07, 2013, 6:23 AMHi Nagesh,
Here is the code for removing desktop shortcut.
<ext:ResourceManager runat="server" /> <ext:Desktop runat="server" ID="Desktop1"> <DesktopConfig> <ShortcutContextMenu> <ext:Menu runat="server"> <Items> <ext:MenuItem runat="server" Text="sdf"> <DirectEvents> <Click OnEvent="deleteModule" /> </DirectEvents> </ext:MenuItem> </Items> </ext:Menu> </ShortcutContextMenu> </DesktopConfig> <Modules> <ext:DesktopModule ModuleID="test"> <Shortcut Name="ABC"> </Shortcut> </ext:DesktopModule> </Modules> </ext:Desktop>
Thanks[DirectMethod] protected void deleteModule(object s, EventArgs e) { X.Msg.Confirm("", "Are you sure", new JFunction { //do something here }); this.Desktop1.RemoveModule("test"); X.Msg.Alert("", "Module deleted successfully.").Show(); }
-
Jan 07, 2013, 6:58 AM
-
Jan 07, 2013, 7:03 AM
Similar Threads
-
cant remove Shortcut from desktop module
By Kaveh in forum 2.x HelpReplies: 5Last Post: Jan 02, 2013, 5:57 PM -
How to load dynamic user controls on desktop shortcut?
By laphuynhkien in forum 2.x HelpReplies: 4Last Post: Aug 23, 2012, 5:58 PM -
Desktop Shortcut BUG on IE
By joao.msdn in forum 1.x HelpReplies: 8Last Post: Jun 27, 2011, 6:46 AM -
[CLOSED] Desktop Shortcut
By schellappa in forum 1.x Legacy Premium HelpReplies: 3Last Post: Mar 14, 2011, 12:08 PM -
[Desktop] Resize shortcut text?
By LuB in forum 1.x HelpReplies: 0Last Post: May 06, 2010, 12:51 PM