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

Rad Gallery Items - setting colours

1 Answer 61 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Toby
Top achievements
Rank 1
Toby asked on 03 Aug 2018, 01:37 PM

HI,

I've spent a while looking, and not found yet, a means to set the disabled colour of a rad element item held in a rad gallery element. Is this possible and if so, how ? I have a requirement to set the colour of disabled items to one of two different colours depending on some other data.

I can set the background colour, and if required implement my own "pretend" enable / disable functionality, but I'd rather not.

Regards

Toby

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Aug 2018, 11:46 AM
Hello Toby,

Yes, this is possible. The following snippet shows how you can set the disabled backcolor of a particular item:
radGalleryItem1.UseDefaultDisabledPaint = false;
radGalleryItem1.SetThemeValueOverride(LightVisualElement.BackColorProperty, Color.Red, "Disabled", "GalleryItemSelectionFill");

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonBar
Asked by
Toby
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or