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

RadGridViewCommands.SearchByText

1 Answer 463 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zhenyan
Top achievements
Rank 1
Zhenyan asked on 13 Jul 2017, 07:13 PM

Hi,

The following code works by searching text on telerik:RadGridView . It highlights all appearance of the text on all columns (i.e. 12 columns) of the data.

Our client requests to only highlight the appearance of the text on the specific 3 columns of the data. no highlights happen on the rest of columns of data no matter if it matches.

Can somebody help me out?

Thanks in advance.

Zhen

public void DoSearch(string text)
{
var grid = this.ExtendedControl;
var searchBytextCommand = RadGridViewCommands.SearchByText as RoutedUICommand;
searchBytextCommand.Execute(text, grid);
}

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 18 Jul 2017, 11:44 AM
Hi Zhenyan,

Thank you for your interest in RadGridView control.

At this moment the control doesn't support limiting the number of columns over which the Search functionality is applied. There are logged feature request in our Feedback Portal where you can track the overall progress of the item and vote for its implementation.

Regards,
Dinko
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Zhenyan
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or