This is a migrated thread and some comments may be shown as answers.

Hiding Row Selection Highlight

9 Answers 836 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 03 May 2010, 05:16 PM
How do I hide the current row highlight of a grid?

9 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 04 May 2010, 09:16 AM
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.
0
David
Top achievements
Rank 1
answered on 04 May 2010, 04:37 PM
where do I find the GridViewRow template?
0
Pavel Pavlov
Telerik team
answered on 05 May 2010, 12:59 PM
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.
0
Graeme
Top achievements
Rank 1
answered on 09 Feb 2012, 07:40 PM
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
0
Vanya Pavlova
Telerik team
answered on 10 Feb 2012, 10:29 AM
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 >>
0
Peter
Top achievements
Rank 1
answered on 04 Aug 2016, 04:40 AM

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

0
Stefan
Telerik team
answered on 04 Aug 2016, 02:09 PM
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.
0
Jun
Top achievements
Rank 1
answered on 02 Nov 2017, 06:20 PM

 

If I want to high light the selected cell only instead of the whole row, how do I change the style?

 

0
Stefan
Telerik team
answered on 06 Nov 2017, 01:52 PM
Hi Jun,

In order to achieve this, you need to predefine the template of GridViewCell. The approach of achieving this is discussed in greater detail in the Styling Cells topic. Can you please check it out and let me know in case further assistance is needed?

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
David
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Graeme
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Peter
Top achievements
Rank 1
Stefan
Telerik team
Jun
Top achievements
Rank 1
Share this question
or