I have a grid consisting of several columns. The grid properties are set to have the odd and even rows display in different colors. One of the columns in my grid contains a text area. The text area does not display with the same color as the row. The text area background is always white regardless of the row. I have tried to bind a field to the background color of the text area to control the color. This works fine unless the user sorts, filters, etc. The value in the rowcolor background property does not seem to move with the row.
Example:
In this example I set the row background color of the text area to gray or blue (odd/even rows).
Row 1 = grey background, text area grey
Row 2 = blue background, text area blue
Row 3 = grey background, text area grey
A filter is requested that causes Row 2 to be the only row displayed. My text area background is now displayed as grey instead of blue. The rest of the row has a blue background.
How do I ensure that the text area background retains the same color as the rest of the row when the grid is filtered, sorted, etc?
Thank you,
Patti
text area background color not the same as row
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: text area background color not the same as row
In Visual Designer, find the "background color" property of the TextArea that is inside your grid. Set the property to: inherit
That should solve your problem without needing to bind or do anything complicated.
Here's an explanation of "inherit": http://www.w3schools.com/cssref/css_inherit.asp
That should solve your problem without needing to bind or do anything complicated.
Here's an explanation of "inherit": http://www.w3schools.com/cssref/css_inherit.asp
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: text area background color not the same as row
Thanks Matt, but I am not doing something right. Enclosed is a screen shot of the background color property and the resulting screen.
Patti
Patti
- Attachments
-
- inherit.docx
- (86.86 KiB) Downloaded 82 times
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: text area background color not the same as row
Patti,
Sorry I didn't explain it more clearly: "background color" should not be "property: inherit;". It should just be "inherit" (without the quotes).
Sorry I didn't explain it more clearly: "background color" should not be "property: inherit;". It should just be "inherit" (without the quotes).
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: text area background color not the same as row
Matt,
It still does not work for me. I have tried inherit; and inherit
The result is the same as the attachment I send previously. The inherit is on the background property for the text area. The text area is a field in the grid. Is that correct?
Patti
It still does not work for me. I have tried inherit; and inherit
The result is the same as the attachment I send previously. The inherit is on the background property for the text area. The text area is a field in the grid. Is that correct?
Patti
-
- Experienced User
- Posts: 147
- Joined: Tue Jun 17, 2014 4:00 pm
- First Name: Patti
- Last Name: Bednarz
- Company Name: McGard
- State / Province: New York
- Country: United States
- Contact:
Re: text area background color not the same as row
Matt,
I found something on the internet about changing the property to "transparent" and it solved my problem.
Thanks for your help and Happy Holidays! Patti
I found something on the internet about changing the property to "transparent" and it solved my problem.
Thanks for your help and Happy Holidays! Patti
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: text area background color not the same as row
Patti,
I'm glad you found a solution. I only tested inherit on Firefox, so maybe the suggestion does not work in all browsers. Happy Holidays to you as well!
I'm glad you found a solution. I only tested inherit on Firefox, so maybe the suggestion does not work in all browsers. Happy Holidays to you as well!
-
- Profound User
- Posts: 42
- Joined: Wed Jun 14, 2017 12:06 pm
- First Name: Dan
- Last Name: Devoe
- Company Name: Boston Warehouse Trading
- State / Province: Massachusetts
- Zip / Postal Code: 02062
- Country: United States
- Contact:
Re: text area background color not the same as row
I realize that you had already found a solution, but what I have found to work is setting the background color of the text area to transparent. This works especially well in subfile grids.
Who is online
Users browsing this forum: No registered users and 5 guests