Is it possible in a grid to not display the current row on all fields?

Basically we have a field in a grid that changes color based on a status, currently if the record is selected its not possible to see the color as the current row color overides the background colour.

asked 19 Jun '15, 04:22

apacheuk's gravatar image

apacheuk
139116
accept rate: 0%


Hi Simon,

To overcome this issue, you should edit the file tomcat/webapps/formspider/css/skins/default.css. Find the CSS rules of ".bdf-grid .bdf-grid-row-selected .x-grid3-cell-inner" and ".bdf-grid .x-grid3-cell-selected" and remove or comment out the "!important" keyword in the backgound-color properties. You can see the changes below.

...
/* Default style for selected row in grid */
.bdf-grid .bdf-grid-row-selected .x-grid3-cell-inner {
  background-color: #f4f0e0 /*!important*/;  /*commented out*/
  border-color: #ded8c0;
}
/* Default style for selected cell in grid */
.bdf-grid .x-grid3-cell-selected {
  background-color: #f4f0e0 /*!important*/; /*commented out*/
  /*border: 1px solid #E59700;*/
}
...

Regards Serdar Gokcen

link

answered 19 Jun '15, 05:40

Serdar's gravatar image

Serdar ♦♦
100k4
accept rate: 14%

edited 19 Jun '15, 05:41

we are using the slate.css in our app, with some mods, mainly new styles

should I be able to edit the two sections in that css to achieve the same effect? I've tried it and doesn't give the desired results, field is still being overwritten by the selected row background colour... is this becasue its still in the default.css?

link

answered 19 Jun '15, 06:24

apacheuk's gravatar image

apacheuk
139116
accept rate: 0%

It shouldn't matter you using slate.css. The same changes can be applied to it as well. The reason you are not seeing the effect might be the browser cache. Just open slate.css in the browser (http://localhost:8080/formspider/css/skins/slate.css) and refresh the page a couple of times with the refresh button on the address bar of your browser. Then see the content of this CSS file wheter you can see the changes you just made. If you see the changes, this time refresh Formspider app and check if you get desired results.

(19 Jun '15, 06:55) Serdar ♦♦
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×85
×16
×14
×8
×4

Asked: 19 Jun '15, 04:22

Seen: 902 times

Last updated: 19 Jun '15, 06:58


© Copyright Gerger 2017