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?



asked 10 May '13, 12:53

Craig's gravatar image

accept rate: 6%

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.

.myGridStyle  .bdf-grid-cell-neutral {
    background-color: white !important;       

If you also want the rest of the grid background color (where no rows are displayed) to be white, just add:

.myGridStyle  .bdf-grid-scroller {
    background-color: white !important;       

The only limit is your imagination :)



answered 12 May '13, 07:01

Michiel%20A's gravatar image

Michiel A
accept rate: 13%

edited 12 May '13, 07:02

Hi Michiel,

I should have guessed that the solution would be CSS :)

Thanks, I will give it a try now.


(12 May '13, 08:13) Craig
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 10 May '13, 12:53

Seen: 1,502 times

Last updated: 12 May '13, 08:13

© Copyright Gerger 2017