Unfortunately this does not work for the foreground color. It seems that the color style can not be inherited from the <div> to the <table>. I have tried to use and override the GridViewConfig.getRowStyle(...). But the class is only added in the div, and not in the contained table.
maybe you need to add additional div elements to the css path get the inner cell
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
I am noob to css stying, but when i got the meaning of this syntax .classA .classB syntax, i could make my code work as intended
here is my code:
snip from java code:
GridView gv = new GridView();
gv.setViewConfig(new GridViewConfig() {
@Override
public String getRowStyle(ModelData model, int rowIndex, ListStore<ModelData> ds) {
if (mybooleanExpression) // this expression is different in my code
return "";
else
return "grayfields";
}
});
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.