This is a migrated thread and some comments may be shown as answers.

[Solved] How to change color of disabled rows

2 Answers 296 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tom
Top achievements
Rank 1
Tom asked on 06 Aug 2009, 07:03 AM
I've got a SL3 application with data entry being done in a GridView.

Some of the rows are enabled, and some, such as total rows that I am maintaining in my code, are disabled. I disable the rows by setting the IsEnabled to false in the RowLoaded event.

However the disabled rows are displayed as dark gray on light gray, and the complaint from the customer is that this combination is very difficult to read, particularly when they project it on a screen. Black on gray would be fine, but I cant see where I could do that. I'm happy to do it in code if I can find where.

Is it possible to change the way in which disabled rows are displayed?

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin Milanov
Telerik team
answered on 10 Aug 2009, 05:41 PM
Hi Tom,

Please find a small sample of changing the look of the disabled state of the RadGridView. Please note that the disabled style is applied to the cell thus providing with consistency if you need to disable a single cell or a column.

In the sample I have set the text color to be black as you requested and also took the liberty to "lighten" the light gray background to increase the contrast and hopefully the readability of the text.

All the best,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tom
Top achievements
Rank 1
answered on 11 Aug 2009, 05:55 AM
Hi Kalin,

Thank you very much for providing the sample. It works well.

As noted by others - that's a hell of a lot of code to do what we want, but I guess that's just silverlight, and at least it is doable.

The amount of work you guys put into support on issues like this is very much appreciated.

Thanks & Regards,
Tom
Tags
GridView
Asked by
Tom
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Tom
Top achievements
Rank 1
Share this question
or