Can we Remove Desktop Shortcut.

Page 1 of 2 12 LastLast
  1. #1

    Can we Remove Desktop Shortcut.

    Hi,
    How can we Delete selected Desktop Shortcut using right click of mouse in Ext.Net, when i right click on particular shortcut then i want Delete option there like Tile, Cascade. and also like i want delete the menuitems of desktop, see below images
    Click image for larger version. 

Name:	delete.JPG 
Views:	173 
Size:	50.8 KB 
ID:	5311
    Click image for larger version. 

Name:	delete1.JPG 
Views:	181 
Size:	45.7 KB 
ID:	5312
    Help me, Thank You
  2. #2
    Unfortunately i was not able to reproduce the issue by doing the following:

    <!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>
    Please post a complete (but simplified) code sample demonstrating how to reproduce the issue.
  3. #3

    Hi RCN

    Quote Originally Posted by RCN View Post
    Unfortunately i was not able to reproduce the issue by doing the following:

    <!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>
    Please post a complete (but simplified) code sample demonstrating how to reproduce the issue.
    Hi RCN, Thanks for Reply
    I didn't done this concept, But i want to delete the Desktop shortcut, once i right click on any shortcut i want Delete option.
    This is urgent help me.
    Thanq
  4. #4
    To 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.
  5. #5
    Please let me know whether it helped you.
  6. #6

    Hi RCN

    Quote Originally Posted by RCN View Post
    Please let me know whether it helped you.
    Hi RCN,
    Yes, am Getting Delete Option, but how can we select the shortcut and delete, shortcuts are not selecting.
    when selecting the shortcut then only i want delete option, otherwise don't want option, see below images
    Click image for larger version. 

Name:	deskkk1.jpg 
Views:	192 
Size:	100.6 KB 
ID:	5347 Click image for larger version. 

Name:	deskkk2.jpg 
Views:	170 
Size:	102.3 KB 
ID:	5348
    Like this want to delete shortcuts from our Ext.Net Desktop.
    Thanq
  7. #7
    Hi everybody,

    There is also ShortcutContextMenu. Maybe, it helps.

    Example
    <ext:Desktop runat="server">
        <DesktopConfig>
            <ShortcutContextMenu>...</ShortcutContextMenu>
        </DesktopConfig>
    </ext:Desktop>
  8. #8
    Hi 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>

    [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();
        }
    Thanks
  9. #9

    Hi Daniil

    Quote Originally Posted by Daniil View Post
    Hi everybody,

    There is also ShortcutContextMenu. Maybe, it helps.

    Example
    <ext:Desktop runat="server">
        <DesktopConfig>
            <ShortcutContextMenu>...</ShortcutContextMenu>
        </DesktopConfig>
    </ext:Desktop>

    Hi Daniil, Thanks for Reply
    yes, we can create context menus, how to delete selected shortcut from coding using one of the context menu.
  10. #10

    Hi Kapoor

    Quote Originally Posted by yash.kapoor View Post
    Hi 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>

    [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();
        }
    Thanks
    Hi Kapoor, Thanks for Reply
    Great it is working good,
    but am creating shortcuts from direct methods, and i have many shortcuts, how to delete selected shortcut like Your Example.

    Thanq.
Page 1 of 2 12 LastLast

Similar Threads

  1. cant remove Shortcut from desktop module
    By Kaveh in forum 2.x Help
    Replies: 5
    Last Post: Jan 02, 2013, 5:57 PM
  2. How to load dynamic user controls on desktop shortcut?
    By laphuynhkien in forum 2.x Help
    Replies: 4
    Last Post: Aug 23, 2012, 5:58 PM
  3. Desktop Shortcut BUG on IE
    By joao.msdn in forum 1.x Help
    Replies: 8
    Last Post: Jun 27, 2011, 6:46 AM
  4. [CLOSED] Desktop Shortcut
    By schellappa in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 14, 2011, 12:08 PM
  5. [Desktop] Resize shortcut text?
    By LuB in forum 1.x Help
    Replies: 0
    Last Post: May 06, 2010, 12:51 PM

Posting Permissions