[CLOSED] [1.0] Icon on Grid Column

  1. #1

    [CLOSED] [1.0] Icon on Grid Column

    Hello,

    I'm using the build, 1.0.0.19414. I used to able to show icons with 8.2 but now the same script works in debug mode but doesn't work when I deploy it to IIS (6.0).

    Below is the script which I use.

            function ImageButton(image, className, tip) {
                return '<img class="' + className + '" ext:qtip="' + tip + '" style="cursor:pointer;cursor:hand;" src="icons/' + image + '-png/ext.axd" />';
            }
    
            function DocumentEdit(value) {
                return ImageButton('page_edit', 'edit', 'Edit');
            }
    I also register the icons I use.

    
             TARScriptManager.RegisterIcon(Ext.Net.Icon.PageEdit);

    Can you please let me know what have changed?

    Thanks.


  2. #2

    RE: [CLOSED] [1.0] Icon on Grid Column

    Hi,

    It is mean that the following url is incorrect (I believe that you don't add application's root name)
    icons/' + image + '-png/ext.axd

    Correct url is
    "~/icons/page_edit-png/ext.axd"

    Just ensure what is root for you application ('~' in the url, for example try to resolve the above url with ResolveUrl method)
    Also if you register that icon then you can see generated html and find generated url for that icon
  3. #3

    RE: [CLOSED] [1.0] Icon on Grid Column

    The problem was in web.config.

    <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />

    ResourceHandler was ResourceManager and that was the problem. While converting from 8.2 I made a mistake there.

    Thanks!

Similar Threads

  1. [CLOSED] Icon in Grid Column header
    By FAS in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 14, 2012, 1:30 PM
  2. Replies: 0
    Last Post: Feb 23, 2012, 5:05 AM
  3. [CLOSED] Display mandatory icon for editor column in grid panel
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 26, 2011, 10:13 AM
  4. [CLOSED] [1.0] Possible to Add Icon to Grid Column Header?
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 14, 2010, 2:34 PM
  5. [CLOSED] Image/Icon column in grid
    By jchau in forum 1.x Help
    Replies: 2
    Last Post: Mar 26, 2009, 3:46 PM

Posting Permissions