[CLOSED] Displaying image/Icon in Each row of a GridPanel according to a condition

  1. #1

    [CLOSED] Displaying image/Icon in Each row of a GridPanel according to a condition

    Hi,

    I want to know how to insert image/icon for every row depending on a condition or depending on the value of other column
    I need to display one of 10-15 different images available.

    Please provide a sample code to solve the above problem.

    Regards, Vasu.
  2. #2

    RE: [CLOSED] Displaying image/Icon in Each row of a GridPanel according to a condition

    Hi Etisbew,

    Probably the easiest option is to use a <Renderer> and return a small chunk of html for the <img> tag. The following sample demonstrates using a <Renderer> to return some html, see https://examples1.ext.net/#/GridPanel/ArrayGrid/Simple/


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 0
    Last Post: May 01, 2012, 9:43 AM
  2. Replies: 5
    Last Post: Feb 07, 2012, 8:01 AM
  3. [CLOSED] Using an external image as the icon of a button
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 08, 2010, 1:03 PM
  4. [CLOSED] Add an image as icon
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Apr 29, 2010, 10:00 AM
  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