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

Change the Forecolor color when an item is selected on the DaraBoundLinbox

4 Answers 71 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Iosu Buenetxea
Top achievements
Rank 1
Iosu Buenetxea asked on 07 Mar 2011, 09:33 PM
Hi

I have been checking the example "DataBound Lisbox/ Compararison" and every time I select one of the items on the list the forecolor of the name of the film is change.

I have try to find how you are doing it but I don't find it..

Can you help me please?
I want to do the same on my app..with only one diference that everytime I select an item I want the Background to change the color..

Thank you

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 09 Mar 2011, 08:56 AM
Hi Iosu Buenetxea,

Thanks for contacting us and for your questions.

The behavior that you observe is defined in the default style of the RadDataBoundListBoxItem. If you wish to change this behavior, you will have to define your own style with specific visual states. For your convenience, I am attaching a .ZIP file containing the default RadDataBoundListBoxItem style which you can use as a starting point to create the behavior you desire.

I hope this helps.

All the best,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
José
Top achievements
Rank 1
answered on 16 Nov 2012, 10:48 AM
Hi, deyan
I'm trying for almost 2 days to make this work, even using you template files I can't  get my Databoundlistbox change the color of the selected item, Please  can you give my a simple example project , I'm really frustate , :(


Regards

José Morango
0
Deyan
Telerik team
answered on 19 Nov 2012, 08:35 AM
Hello Iosu,

Thanks for writing.

There are many examples in our Demos project which demonstrate this. You do not need to do anything special but explicitly set Foreground to any text blocks that are put withing your Item Template.

I hope this helps.

All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
José
Top achievements
Rank 1
answered on 23 Nov 2012, 06:14 PM
Thanks, I find out :) very simple :)
Tags
DataBoundListBox
Asked by
Iosu Buenetxea
Top achievements
Rank 1
Answers by
Deyan
Telerik team
José
Top achievements
Rank 1
Share this question
or