listbox item backcolor

2 posts, 0 answers
  1. Donnie
    Donnie avatar
    5 posts
    Member since:
    Feb 2009

    Posted 04 Mar 2009 Link to this post

    I have a list box where I want to add several items. I later based on the status of a variable inside the tag attempt to set the backcolor of the item. However the items backcolor does not change. I tried to take of the themes and that did not work either. So is it possible to set the backcolor of an individual item inside a listbox.
  2. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 06 Mar 2009 Link to this post

    Hi Donnie,

    In order to set the back colors of a RadListBoxItem, you should modify the FillPrimitive of this item. I have demonstrated how to do so in the sample project attached.

    For your reference about the internal structure of a RadListBoxItem, click on the RadListBoxItem SmartTag and then choose Edit UI Elements.

    If you have additional questions, feel free to contact me.

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