jruiza
#1
Hi all,
I want to know if is possoble set diferent background or diferent font color for rows depends of your information. Example…
If the value in the row is positive show information with black color. Otherwise show the information with red color…
Thanks a lot for you advice!
mygrid.forEachRow(function(id) {
if(someCondition) {
grid.setRowTextStyle(id, "background-color: red; color: black;");
}
else {
grid.setRowTextStyle(id, "background-color: black; color: red;");
});
not sure how to edit posts but forgot a closing curly brace on the else
Olga
#4
It better to implement custom eXcell type so you will not iterate through all rows which may decrease loading performance.
Please find more information about custom eXcell creation here docs.dhtmlx.com/doku.php?id=dhtm … creation&s[]=custom&s[]=excell