Home › Forums › Guriddo jqGrid JS › Grouping Data questions
We are using v5.3.0 and using grouping with subgrid and celledit, grouping works great but having some trouble with summary
2. How do change the style of the grouping row? background color?
About 1. Can you please post the grid setup and some simple data or send a demo link or demo files to the support?
About 2. It depend how you want to process.
a) In case if you want to add the same color of all first level grouping you can:
where jqGrid word in the classname is the id of the grid.
for the second level the generated class is jqGridghead_1 and etc.
b) If you want to do this dynamically depending a value one possible solution is to get the grouping names and add the appropriate classes in loadComplete by example.
and then define a style like:
Guriddo Support Team
Thank you for solution regarding background color.
Here’ s a link
you will see in code that columns – dblOrdered and curSalePrice – have cellattr function – if I remove the cellattr – then grouping summary renders correctly.
I believe the problem is rdata parameter is undefined for the grouping rows – this is what might be causing the issue.
cellattr should not be a problem. We have prepared similar example and it works. See here
The problem is maybe in another part of the code. Try to use no grouping, but with cellattr function.
The code works fine when grouping is set to false
yes, I understand cellattr is not a problem, I believe the problem – is with rdata parameter. When cellattr is being processed for every row – grouping header/row does not have rdata object.
I had to specifically add a check and now it works.
Thank you for posting your solution and let us know where the problem was.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS