Grid View - Search as You Type - Highlighted Cell Style

1 Answer 71 Views
GridView
Richard
Top achievements
Rank 2
Iron
Iron
Veteran
Richard asked on 21 Dec 2021, 02:56 PM

Is it possible to set a custom ‘Search as You Type’ style on the highlighted grid cells?

I have some users that are color blind and can’t read the highlighted cells, to be honest, I find the red text hard to read myself and I’m not color blind.

See attached screenshot. 

Thanks,

Richard

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 21 Dec 2021, 04:02 PM

Hello Richard,

In order to achieve the wanted result, you could create a style that targets the telerik:HighlightTextBlock element and set the HighlightBrush property to a color of your choice. This information can be found in the Styling Search Panel article, and more specifically, this section of it. The style could be defined inside the Window.Resources collection, which will be applied to every element with a type of telerik:HighlightTextBlock. The following code snippet shows how the style should look inside the resources dictionary of the window:

<Window.Resources>
   <Style TargetType="telerik:HighlightTextBlock">
       <Setter Property="HighlightBrush" Value="Orange"/>
   </Style>
</Window.Resources> 

I hope the provided information is of help to you.

Regards,
Stenly
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/.

Richard
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 21 Dec 2021, 04:06 PM

perfect! 

Thanks Stenly

Tags
GridView
Asked by
Richard
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Stenly
Telerik team
Share this question
or