This is a migrated thread and some comments may be shown as answers.
Set Search Row "Search In Columns" Items Programmatically
3 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Gone2TheDogs
Top achievements
Rank 1
Gone2TheDogs asked on 02 Oct 2019, 05:53 PM

I need to set only certain columns to be searched by default. 

By default, all columns are marked in the "Search in Columns" context menu. How do I set it to be only certain columns?

 

 

3 Answers, 1 is accepted

Sort by
0
Gone2TheDogs
Top achievements
Rank 1
answered on 02 Oct 2019, 05:54 PM
I don't see a way to edit my original post, but want to be clear that I want to programmatically set the default "Search In Columns" items true and false.
0
Nadya
Telerik team
answered on 04 Oct 2019, 01:53 PM

Hello Bob,

You can specify whether the search functionality is enabled for a given column by setting the column's AllowSearching property to false as shown below:

this.radGridView1.Columns["LastName"].AllowSearching = false;
this.radGridView1.Columns["FirstName"].AllowSearching = false;

I hope this helps. Should you have any other questions, I will be glad to help.

Regards,
Nadya
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.
0
Gone2TheDogs
Top achievements
Rank 1
answered on 09 Oct 2019, 12:46 PM
Exactly what I was looking for! Thank you.
Asked by
Gone2TheDogs
Top achievements
Rank 1
Answers by
Gone2TheDogs
Top achievements
Rank 1
Nadya
Telerik team
Share this question
or