jqGrid footer cells "inherits" CSS from cells in the main grid

Posted by Tore on Stack Overflow See other posts from Stack Overflow or by Tore
Published on 2010-04-21T13:07:40Z Indexed on 2010/04/21 13:13 UTC
Read the original article Hit count: 523

Filed under:
|
|

I have a footerrow in my jqGrid where I sum up the values in some of the columns. I set the footer using the 'footerData' function when the grid has completed loading. This requires the 'footerrow' property in the grid-options to be set to 'true'. Some of the columns which I don't sum up have CSS applied to them (to show some icons in the cells), which is set using the 'classes' property in the colModel API. The problem is that these CSS-classes are also applied to the cells in the footerrow. I don't want them applied there, but I don't know how to prevent them from being shown. I tried to use jQuery to remove the 'class' property from the td elements after calling the 'footerData' function. The problem is that while the grid is loading, the icons are flashed to the user. How can I prevent the CSS from being applied in the first place?

© Stack Overflow or respective owner

Related posts about jqgrid

Related posts about css