Using RowStyleSelector with Metro Theme, how do you change the SelectedRow color to know which RowStyleSelector row you have clicked?

2 posts, 0 answers
  1. Bryce
    Bryce avatar
    32 posts
    Member since:
    Aug 2010

    Posted 30 Jan 2012 Link to this post

    Hi,

    I am currently using the Metro Theme, and have a RowStyleSelector. The RowStyleSelector returns a color that can be red or white. If a user selects a row with the Metro theme, it makes the row a bluish color no matter if the row is red or white. How would I be able to change the selected row color depending on whether it is red or white?

    Thanks,
    Bryce
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 02 Feb 2012 Link to this post

    Hello Bryce,

     


    If you want to change the selection of a row you should predefine its template and modify the Border element named Background_Selected in the way you need. In case of StyleSelectors what you may do is to keep a template within the corresponding style with modified selection and reference it based on your custom logic. 




    Kind regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top