How to get the Desktop Module Window Id

  1. #1

    How to get the Desktop Module Window Id

    Hi,

    I am creating a desktop. How can i get the window id of the module of the desktop. My code is as below:-

    <%@ Page Language="C#" CodeBehind="~/Default.aspx.cs" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Namespace="Test" TagPrefix="aa" %>
    <html>
    <head runat="server">
        <title>Listagem</title>
    </head>
    <body>
        <div>
            <ext:ResourceManager runat="server" />
            <ext:Desktop ID="Desktop1" runat="server">            
                <Modules>
                    <ext:DesktopModule ModuleID="Hello" AutoRun="true">
                        <Window>
                            <ext:Window 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>
    
                    <ext:DesktopModule ModuleID="notepad">
                        <Shortcut Name="Notepad" IconCls="x-notepad-shortcut"  SortIndex="2" />                       
                        <Launcher Text="Notepad" Icon="ApplicationForm" />
                        <Window>
                            <ext:Window runat="server"
                                ID="WindowNotepad"
                                Title="Notepad"
                                Width="600"
                                Height="400"
                                Icon="ApplicationForm"
                                AnimCollapse="false"
                                Border="false"
                                HideMode="Offsets"
                                Layout="FitLayout"
                                CloseAction="Destroy">
                                <Items>
                                    <ext:HtmlEditor runat="server" Text="Some <b>rich</b> <font color='red'>text</font> goes <u>here</u><br>Give it a try!">
                                    </ext:HtmlEditor>
                                </Items>
                            </ext:Window>
                        </Window>
                    </ext:DesktopModule>
                </Modules>
    
                
            </ext:Desktop>
        </div>
    </body>
    </html>
  2. #2
    Quote Originally Posted by yash.kapoor View Post
    Hi,

    I am creating a desktop. How can i get the window id of the module of the desktop. My code is as below:-

    <%@ Page Language="C#" CodeBehind="~/Default.aspx.cs" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Namespace="Test" TagPrefix="aa" %>
    <html>
    <head runat="server">
        <title>Listagem</title>
    </head>
    <body>
        <div>
            <ext:ResourceManager runat="server" />
            <ext:Desktop ID="Desktop1" runat="server">            
                <Modules>
                    <ext:DesktopModule ModuleID="Hello" AutoRun="true">
                        <Window>
                            <ext:Window 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>
    
                    <ext:DesktopModule ModuleID="notepad">
                        <Shortcut Name="Notepad" IconCls="x-notepad-shortcut"  SortIndex="2" />                       
                        <Launcher Text="Notepad" Icon="ApplicationForm" />
                        <Window>
                            <ext:Window runat="server"
                                ID="WindowNotepad"
                                Title="Notepad"
                                Width="600"
                                Height="400"
                                Icon="ApplicationForm"
                                AnimCollapse="false"
                                Border="false"
                                HideMode="Offsets"
                                Layout="FitLayout"
                                CloseAction="Destroy">
                                <Items>
                                    <ext:HtmlEditor runat="server" Text="Some <b>rich</b> <font color='red'>text</font> goes <u>here</u><br>Give it a try!">
                                    </ext:HtmlEditor>
                                </Items>
                            </ext:Window>
                        </Window>
                    </ext:DesktopModule>
                </Modules>
    
                
            </ext:Desktop>
        </div>
    </body>
    </html>
    Any update!

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. Render dynamic module in Desktop
    By AIM System Ltd in forum 2.x Help
    Replies: 0
    Last Post: Jul 25, 2012, 7:31 AM
  3. Replies: 8
    Last Post: Apr 30, 2012, 1:51 PM
  4. Replies: 1
    Last Post: Aug 17, 2010, 10:07 PM
  5. Desktop Module JS error
    By fenix2222 in forum Bugs
    Replies: 1
    Last Post: Mar 29, 2009, 2:21 PM

Posting Permissions