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

listbox item backcolor

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donnie
Top achievements
Rank 1
Donnie asked on 04 Mar 2009, 05:51 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Mar 2009, 08:53 AM
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.
Tags
General Discussions
Asked by
Donnie
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or