[CLOSED] ArrowRefresh icon won't display

  1. #1

    [CLOSED] ArrowRefresh icon won't display

    Hi,

    This is relatively minor, but I'm puzzled nonetheless. I'm using a button in the GridPanel topbar toolbar as below:

    <TopBar>
       <ext:Toolbar ID="Toolbar1" runat="server">
           <Items>
              <ext:Button ID="ButtonRefresh" runat="server" Text="Refresh" Width="120" Icon="ArrowRefresh" ToolTip="Refresh">
                   <DirectEvents>
                       <Click OnEvent="ButtonRefresh_Click" IsUpload="true">
                          <EventMask ShowMask="true" />
                       </Click>
                    </DirectEvents>
               </ext:Button>
            </Items>
        </ext:Toolbar>
    </TopBar>
    The refresh icon named "ArrowRefresh" doesn't show up. If I change it to "ArrowRefreshSmall", then there's no problem. Do I have to do anything special for some specific icons, maybe register them? I tried in Page_Load

    this.ResourceManager1.RegisterIcon(Icon.ArrowRefresh);
    with no success.

    Thanks,

    Vadym
    Last edited by Daniil; Feb 27, 2012 at 1:33 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I was unable to reproduce the problem - the ArrowRefresh icon appears correctly on my side.

    You should not register any Icon manually if you use it in the markup.

    Please inspect the resources requests:

    1. Is the ArrowRefresh Icon loaded?
    2. Are there any errors?

    What Ext.NET sources do you use? What browser do you test with?
  3. #3
    I'm using the SVN source code from Feb 01, 2012. The browser is IE9. I'm getting error 404 GET /resources/icons/arrow_refresh.png HTTP/1.1 when I examine the request with Fiddler. That also seems to happen to a few other icons like application_go.png or application_double.png.

    I've exluded the /resources folder from the project and rerun the application. The result is the same.

    Thanks,

    Vadym
  4. #4
    I found it out. It was a copy-and-paste css from one of the examples I believe:

    .icon-arrowrefresh  { background-image : url(/resources/icons/arrow_refresh.png) !important; }
    After commenting out the whole /* Icons */ section in main.css and clearing the cache, the problem has disappeared.

    Thanks for the pointers!

    Vadym

Similar Threads

  1. [CLOSED] GridCommand icon doesn't display
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 06, 2012, 8:48 AM
  2. Replies: 0
    Last Post: Aug 22, 2011, 7:56 AM
  3. Replies: 3
    Last Post: May 20, 2011, 9:30 PM
  4. [CLOSED] display icon when invalid validation
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 22, 2011, 2:33 PM
  5. Replies: 3
    Last Post: Aug 13, 2009, 3:27 PM

Posting Permissions