[CLOSED] ICONs are not rendering in popup window

  1. #1

    [CLOSED] ICONs are not rendering in popup window

    Hi,

    In a button click event I have configured and showing the window. In window configuration I have added icons to the buttons, but those icons are not showing up. Can you please let me know anything else I need to add or modify.

    The Main page code is

    
    <%@ Page Language="VB" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        Public Sub ClickRefresh(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs)
            
            'Me.pnlMain.LoadContent("TestPage.aspx")
            
        End Sub
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script type="text/javascript">
            var renderWindow = function (windowConfig) {
                var win = Ext.getCmp(windowConfig.id);
                if (!win) {
                    new Ext.Window(windowConfig);
                } else {
                    win.show();
                }
            }
    
            var ShowReqCondsWindow = function (statusval, keystr, statusid) {
                //alert("Here");
                var windowConfig = {
                    id: "WindowReqCond",
                    title: "Required Popup",
                    height: 540,
                    width: 720,
                    hidden: false,
                    buttonAlign: "center",
                    closeAction: "close",
                    iconCls: "icon-pagewhitecode",
                    buttons: [
                    {
                        id: "btnSave",
                        text: "Save and Close",
                        iconCls: "icon-disk"
                    },
                    {
                        id: "btnClose",
                        text: "Close",
                        iconCls: "icon-delete",
                        listeners:
                                {
                                    click:
                                    {
                                        fn: function (el, e) {
                                            parent.Ext.getCmp('WindowReqCond').close();
                                        }
                                    }
                                }
                    }
    
                        ]
                }
                renderWindow(windowConfig);
            }
    
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="border">
            <Items>
                <ext:Panel ID="pnlMain" runat="server" Padding="5" Region="Center">
                    <Items>
                    </Items>
                    <Buttons>
                    <ext:Button ID="btnPopup" runat="server" Text="Show Window">
                    <Listeners>
                    <Click Handler="ShowReqCondsWindow()" />
                    </Listeners>
                    </ext:Button>
                        <ext:Button ID="btnRefresh" Text="Refresh" runat="server">
                            <DirectEvents>
                                <Click OnEvent="ClickRefresh">
                                    <EventMask Msg="Refreshing..." ShowMask="true" />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Buttons>
                </ext:Panel>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
    Last edited by Daniil; Apr 01, 2011 at 1:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    When you use the .iconCls config option on client side, you have to register these icons manually.

    Example
    protected void Page_Load(object sender, EventArgs e)
    {
        ResourceManager.GetInstance().RegisterIcon(Icon.Accept);
    }
    When you use it in the markup or code behind they are registered manually.

Similar Threads

  1. Replies: 1
    Last Post: Aug 10, 2012, 1:09 PM
  2. Replies: 1
    Last Post: Jun 18, 2012, 3:41 PM
  3. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 7:35 PM
  4. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  5. Replies: 1
    Last Post: Mar 11, 2011, 10:07 PM

Tags for this Thread

Posting Permissions