Hiding Row Selection Highlight

8 posts, 0 answers
  1. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 03 May 2010 Link to this post

    How do I hide the current row highlight of a grid?
  2. Kalin Milanov
    Admin
    Kalin Milanov avatar
    447 posts

    Posted 04 May 2010 Link to this post

    Hello David,

    To do that you will need to edit the template of the row and remove the IsSelected trigger. This will cause the row not to display the selection, only MouseOver state.

    Let me know if you need any additional assistance with this.

    Best wishes,
    Kalin Milanov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 04 May 2010 Link to this post

    where do I find the GridViewRow template?
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 05 May 2010 Link to this post

    Hi David,

    The attached project has a row template with the selection trigger commented out . I hope you find it helpful.

    Greetings,
    Pavel Pavlov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Graeme
    Graeme avatar
    3 posts
    Member since:
    Jun 2009

    Posted 09 Feb 2012 Link to this post

    Hello, I am also attempting to alter the selection/over visuals.  I tried the above approach and noticed that it severely impacted scrolling performance.  I tried replacing my template with the above attached template (which is almost identical), and I still see the performance issue.

    Is there a "lightweight" version of this row template that can be applied?  The default selection/over visuals do not match our application theme, so we simply want to remove them.  I would think this would actually improve performance (if anything), so I am wondering what I am doing wrong?

    Thanks -
    - Graeme
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Feb 2012 Link to this post

    Hi Graeme,

     


    Generally if you want to remove these effects you may predefine the template of GridViewRow and remove the Border elements named Background_Over and Background_Selected (and their associated triggers as well). I am attaching you sample application which demonstrates how to achieve this result. 
    Will you please give it a try and let me know how it goes? 




    Regards,
    Vanya Pavlova
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. Peter
    Peter avatar
    9 posts
    Member since:
    Aug 2016

    Posted 03 Aug in reply to Pavel Pavlov Link to this post

    Hi Pavel,

    I aslo encounter this issue.Is this only applied for WPF application?

    I am buiding the "Telerik Windows Form Application",and want to hide the selection highlight,how can I achieve that?

     

    Best Regards,

    Peter

  9. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 04 Aug Link to this post

    Hi Peter,

    As this forum thread is for RadGridView from the UI for WPF suite, I would kindly ask you to post your question in the relevant section, so that the thread is kept consistent.

    Thanks in advance for your cooperation.

    All the best,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready