Declined
Last Updated: 17 May 2022 09:35 by ADMIN
Martin
Created on: 14 Apr 2022 14:02
Category: TreeListView
Type: Bug Report
0
TreeListView: Border is still displayed around current cell when control gains focus even if CurrentBorderBrush is Transparent

I am using a RadTreeListView with MaterialDesign theme in a Windows WPF application. By default the selected cell is indicated by a grey line at the bottom of the cell. I don't want an indication for the selected cell and used the advise from forum to change the style as follows:


  <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
    <Setter Property="CurrentBorderBrush" Value="Transparent"/>
  </Style>

This works fine.

But if changing the Windows application with Alt+Tab and then back to my application with Alt+Tab the cell selection (grey underline) is displayed.

2 comments
ADMIN
Vicky
Posted on: 17 May 2022 09:35

Hello,

The status of this Bug Report will be changed to Declined.

The element which is displayed when navigating through the control's cells with Alt+Tab is the cell's default focus visual. The GridViewCell has a theme-aware FocusVisualStyle (instead the one we're used to see - the dashed rectangle).

To completely remove the indication of a Grid/TreeListView's both selection and focus states, you need to extend the previously mentioned style with the following setter:

<Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
    <Setter Property="CurrentBorderBrush" Value="Transparent"/>
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</Style>

Regards,
Vicky
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Dilyan Traykov
Posted on: 18 Apr 2022 10:46

Hello Martin,

Thank you for the provided code snippet and your feedback.

Indeed, I was able to replicate the same issue at my end and can confirm that it appears to be a bug. I have thus changed the status of the report to Unplanned and awarded you some Telerik points for bringing this to our attention.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.