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

5 posts, 0 answers
  1. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 07 Mar 2011 Link to this post

    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
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 09 Mar 2011 Link to this post

    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>>
  3. DevCraft banner
  4. José
    José avatar
    8 posts
    Member since:
    May 2012

    Posted 16 Nov 2012 Link to this post

    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
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 19 Nov 2012 Link to this post

    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.
  6. José
    José avatar
    8 posts
    Member since:
    May 2012

    Posted 23 Nov 2012 Link to this post

    Thanks, I find out :) very simple :)
Back to Top
DevCraft banner