Home › Forums › Guriddo jqGrid JS › Help › Add a class to a row during Json generation
Hi,
I would like to know if it's possible to add a class to a row during Json generation ?
Thus, I would be able to color rows thanks to css depending row values.
[Example]
Hello,
Not possible for now. When using the readers with repeatitems set to false, this can be done easy, but will make a lot of code when this option is set to true.
Regards
Tony
I just want to say that I manage to do what I want by editing your JavaScript.
In grid.base.js :
Line 611 : (for Json)
– rowData[ari++] = “
+ rowData[ari++] = “
======================================
I haven't tried what is below, because I do not use Xml format.
Line 475–>484 : (for Xml)
I just hope that you'll implement this feature in the next versions of jqGrid!
I think it can be useful to a lot of people.
But your grid is already excellent, so… thank you for everything!
Here is the Css I have used (if people are interessed) :
tr.myCssClass td{
Thanks. Will try to investigate this and if everthing is ok will implement it – but remember I do not promiese this.
Best Regards
It is normal, and I understand you don't have time to do everything people would like!
Anyway thanks again for your support.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS