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

highlight the search term in the grid

1 Answer 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
KR
Top achievements
Rank 1
Veteran
KR asked on 26 Nov 2019, 03:44 PM
Hi,

I am implementing MVC grid with FullText Search from below link. How do I highlight the search term in the Grid as shown in the attached screenshot?

https://demos.telerik.com/aspnet-mvc/grid/search-panel

Thanks!

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 28 Nov 2019, 12:52 PM

Hello,

A possible solution would be to iterate through the content and wrap the matched substrings in a span, then change the color of that span. Below you will find a small sample which demonstrates the above approach:

I hope this helps.

Regards,
Georgi
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
KR
Top achievements
Rank 1
Veteran
Answers by
Georgi
Telerik team
Share this question
or