Highlight RowDetailsTemplate when row is highlighted

5 posts, 1 answers
  1. Doug
    Doug avatar
    3 posts
    Member since:
    Feb 2012

    Posted 10 Apr 2015 Link to this post

    Hi,

     We have a RadGridView with a RowDetailsTemplate.  When the user mouses over the row or selects the row, the row is highlighted, but not the details.  We would like to present both the row and the details to the user as a single row.  Is there a way to also highlight the row details when the parent is highlighted?

     

    Thanks,

    Doug

  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 13 Apr 2015 Link to this post

    Hi Doug,


    ControlTemplate of GridViewRow could be modified so that the row details could be highlighted, when the parent ros is being either hovered or selected.

    Do you want to have the same colors on hover and selection for row details?


    Regards,
    Vanya Pavlova
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. DevCraft banner
  4. Doug
    Doug avatar
    3 posts
    Member since:
    Feb 2012

    Posted 13 Apr 2015 in reply to Vanya Pavlova Link to this post

    Hi Vanya,

     Yes, we would like to have the same colors on the detail rows as the parent row.

     Thanks,

    Doug

  5. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 13 Apr 2015 Link to this post

    Hello Doug,


    You should predefine the default control template of GridViewRow and span the desired elements. 
    Setting Background of DetailsPresenter to Transparent will include it in hit testing.

    I'm attaching you small sample demo that illustrates this approach. 


    Regards,
    Vanya Pavlova
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. Doug
    Doug avatar
    3 posts
    Member since:
    Feb 2012

    Posted 20 Apr 2015 in reply to Vanya Pavlova Link to this post

    Thanks Vanya!  The sample was very helpful.

Back to Top
DevCraft banner