Styling Row Indicator

3 posts, 1 answers
  1. Kevin Hendriks
    Kevin Hendriks avatar
    56 posts
    Member since:
    Feb 2009

    Posted 25 Jan 2011 Link to this post

    I made the following style

    <

     

    Style TargetType="{x:Type telerik:GridViewRow}">

     

     

     

    <Style.Triggers>

     

     

     

    <DataTrigger Binding="{Binding Marked}" Value="True">

     

     

     

    <Setter Property="Background" Value="Yellow" />

     

     

     

    </DataTrigger>

     

     

     

    </Style.Triggers>

     

     

     

    </Style>

     



    This all works fine but it does not change the background color of the row Indicator how do i make this possible?

    Also in my Expression Blend 3 the Edit a Copy for the rowstyle is not avalable so I have nothing to style as a base
  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Jan 2011 Link to this post

    Hi Kevin,


    Considering the template structure of GridViewRow you cannot change its indicator with a simple style.
    You need to edit the template of GridViewRow to achieve the desired result as it is shown at the attached example. As far as I can understand you cannot edit the template of GridViewRow by some reason.
    Can you please try the approach below and let me know what happens:

    1.Find in Assets library a single GridViewRow.
    2.Drag it onto the Artboard, right click on it and choose the option Edit Template -> Edit a copy.

    You may use the same approach for any other GridView part.


    Regards,
    Vanya Pavlova
    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. UI for WPF is Visual Studio 2017 Ready
  4. Kevin Hendriks
    Kevin Hendriks avatar
    56 posts
    Member since:
    Feb 2009

    Posted 26 Jan 2011 Link to this post

    Yes this both worked thanks alot.
Back to Top