Rad Gallery Items - setting colours

2 posts, 0 answers
  1. Toby
    Toby avatar
    8 posts
    Member since:
    Oct 2017

    Posted 03 Aug 2018 Link to this post


    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.



  2. Dimitar
    Dimitar avatar
    2960 posts

    Posted 06 Aug 2018 Link to this post

    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.

    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.
Back to Top