Set Search Row "Search In Columns" Items Programmatically

4 posts, 0 answers
  1. Gone2TheDogs
    Gone2TheDogs avatar
    62 posts
    Member since:
    May 2016

    Posted 02 Oct Link to this post

    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?

     

     

  2. Gone2TheDogs
    Gone2TheDogs avatar
    62 posts
    Member since:
    May 2016

    Posted 02 Oct in reply to Gone2TheDogs Link to this post

    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.
  3. Nadya
    Admin
    Nadya avatar
    105 posts

    Posted 04 Oct Link to this post

    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.
  4. Gone2TheDogs
    Gone2TheDogs avatar
    62 posts
    Member since:
    May 2016

    Posted 09 Oct Link to this post

    Exactly what I was looking for! Thank you.
Back to Top