SelectionUnit="FullRow" but it still draws a box around any cell I click on

1 Answer 22 Views
GridView
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Paul asked on 04 Mar 2024, 12:22 PM

There's probably just a property for this that I am missing.
I have a RadGridView with SelectionUnit="FullRow" but it still draws a box around whatever cell I click on.

I can confirm that it doing the full row selection because it will copy the row text if I press ctrl-C.
The row indicator on the left is also showing correctly.

So how do I tell it to not draw the box around the cell?

(it's not a big issue but some user will probably complain about it)

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Mar 2024, 08:13 AM

Hello Paul,

When you click on a cell in RadGridView, this makes it the current cell, which comes with the corresponding visual state. The currency is not exactly the same as the selection, but it looks similar. In any case, the cell currency cannot be disabled, however, there is a feature request to allow this.

You can get the desired effect and hide the border around the current cell by re-templating the GridViewCell element. The exact change in the ControlTemplate may vary per Telerik theme, but basically you will need to find a Border called "Background_Current" and remove or hide it.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or