Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Icon listgridfield empty upon empty value

    Hi there,

    Is this possible:

    Have a listgrid column that will show an icon when the value column is filled (always the same icon, no matter what the value is). But there should be no icon, when the value in that column is empty.

    I noticed I can only set icon image pre- and suffixes, but no if/then constructions...

    Regards,

    Kees.

    #2
    You could use a blank image, or you can use the valueIcon-related APIs to define what image appears for null.

    Comment


      #3
      Well actually, my requirements are the other way around.

      When there is content in the field, the listgrid should always show the same image, regardless of the content. If there is no content, no image should be shown.

      For example this data:
      A
      B
      C

      Shoud show (pseudo code)
      <img src='key' alt='A'>
      <img src='key' alt='B'>
      <img src='key' alt='C'>

      Where the A,B and C are shown as a onHover tooltip.

      Comment


        #4
        Then just use a CellFormatter. The static method Canvas.imgHTML() will help you generate <img> tags.

        Comment

        Working...
        X