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
  • 369,052
  • 73
  • 620
  • 1,021
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
  • 219,533
  • 32
  • 395
  • 775