Hi, I have some grids in my application, some of which I've set as non-editable for the whole grid and some are editable at grid level but individual items are non-editable; the functionality works just fine, however, the visual appearance for a non-editable item is different to that of an editable item. This is OK for some situations but for others I want to ensure the visual appearance of the non-editable items remains the same as the editable items, specifically as it relates to the alternate row colour. Can this be done in FS? Thanks, Craig |
Hi Craig, Again, CSS to the rescue... Just set a styleclass like styleClass="myGridStyle" on the grid. Using the CSS style class, you can overrule any styling on the grids that use the style. For example setting the backgroundcolor to white for a grid that has editable="N", just set this in your custom CSS.
If you also want the rest of the grid background color (where no rows are displayed) to be white, just add:
The only limit is your imagination :) Best, Hi Michiel, I should have guessed that the solution would be CSS :) Thanks, I will give it a try now. Craig.
(12 May '13, 08:13)
Craig
|