3

in JQGrid 3.8, is it possible to have an icon instead of text in a column ?

I don't think it's possible but if you have a trick, i'd be happy

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Fredv
  • 552
  • 1
  • 8
  • 22

1 Answers1

5

There are many ways to add icons in the grid. First way is: the data which be placed in the column header (colNames) or inside of the cell data could be HTML data. So you can easy insert the <img> element in the grid. One more method is th use custom formatters. See here some demos. If the standard jQuery UI icons contain all the icons which you need I would recommend you to use there.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798