[CLOSED] panel icon missing when dynamically load a user control

  1. #1

    [CLOSED] panel icon missing when dynamically load a user control

    The icons are missing when load a control dynamically. This only happen after I upgraded to the 2.1 branch. This is the test code:

    default.aspx
    <%@ Page Language="C#" %>
       
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
       
    <script runat="server">
      
        [DirectMethod]
        public void ShowWin()
        {
    
            var win = new Window
            {
                ID = "Window1",
                Title = "Charts",
                BodyPadding = 5,
                Modal = true,
                Width = 400,
                Height = 200,
                Icon = Icon.Information
    
            };
    
            var f = this.LoadControl("~/test.ascx");
    
            win.ContentControls.Add(f);
            win.Render(this.Form);
    
    
        }
    
    </script>
       
    <!DOCTYPE html>
       
    <html>
    <head id="Head1" runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
           <ext:Panel ID="Panel1" runat="server"  >
    
      
         <Items>
         
         <ext:Label ID="Label1" runat="server" Text="test"></ext:Label>
           <ext:Button ID="Button1" runat="server" Text="new window" >
            <Listeners>
                <Click  Handler="#{DirectMethods}.ShowWin();">
                
                </Click>
            </Listeners>
           
           </ext:Button>
                
         </Items>
      
     </ext:Panel>
        </form>
    </body>
    </html>
    test.ascx
    <%@ Control Language="C#"   %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <ext:TabPanel id="TabPanel2" layout="FitLayout" runat="server" activetabindex="0"
        border="false" Icon="ChartBar">
                         <Items>
                          <ext:Panel   ID="pnlClientProfile" runat="server" Title="Client Profile" BodyPadding="5"  AutoScroll="true"  Icon="Accept" >                  
                             
                         </ext:Panel>
                          
                              <ext:Panel ID="pnlInvestment" runat="server" Title="Wealth Review"   Layout="FitLayout" Icon="Cog">                            
                             </ext:Panel>
                         
                         </Items>
    </ext:TabPanel>
    Last edited by Daniil; Jul 30, 2012 at 8:49 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Seems it works well for me, I can see the icons.

    Is the issue reproducible with all browsers?

    Can you inspect the images request? Can you see them? What are their statuses?
  3. #3
    the icons are missing in Chrome and IE8....

    I can inspect them and seem something like this:

    <span id="tab-1017-btnIconEl" class="x-tab-icon icon-chartbar" style=""></span>
    However it seems that class is not applied properly.... what other property values do you want me to check?
    Last edited by Daniil; Jul 27, 2012 at 4:03 PM. Reason: Please use [CODE] tags
  4. #4
    The strange thing is the icons appeared after I deployed the code from my dev box to a proper IIS server and pointed the browser to that server....
  5. #5
    Quote Originally Posted by CarpFisher View Post
    the icons are missing in Chrome and IE8
    I have checked these ones as well, works for me.

    Quote Originally Posted by CarpFisher View Post
    I can inspect them and seem something like this:

    <span id="tab-1017-btnIconEl" class="x-tab-icon icon-chartbar" style=""></span>
    However it seems that class is not applied properly.... what other property values do you want me to check?
    Good. Could you also inspect the images requests?
    Can you inspect the images request? Can you see them? What are their statuses?
    Quote Originally Posted by CarpFisher View Post
    The strange thing is the icons appeared after I deployed the code from my dev box to a proper IIS server and pointed the browser to that server....
    Could you post your Web.config? Please do not forget to remove any private data.
  6. #6
    Yes you spotted on! it's the web.config. It was missing the following:

    <system.web>
     <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
        </httpHandlers>
      </system.web>
    After adding that it works. Thanks
    Last edited by Daniil; Jul 30, 2012 at 8:48 AM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  2. [CLOSED] DirectMethod missing when control created dynamically
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 08, 2012, 8:29 PM
  3. Replies: 4
    Last Post: Jun 21, 2010, 10:31 AM
  4. Replies: 0
    Last Post: May 03, 2010, 4:33 AM
  5. How to dynamically load user controls?
    By zikr in forum 1.x Help
    Replies: 0
    Last Post: Jan 23, 2009, 9:35 PM

Tags for this Thread

Posting Permissions