Hide Settings Button in Search

3 posts, 1 answers
  1. Arun
    Arun avatar
    6 posts
    Member since:
    Feb 2016

    Posted 07 Jul Link to this post

    Hi, 

    Please help me to hide the settings button near to the search textbox.

    Image attached.

    Thanks in advance

  2. Answer
    Nadya
    Admin
    Nadya avatar
    42 posts

    Posted 08 Jul Link to this post

    Hello Arun,

    To achieve this you should handle the ViewCellFormatting event and access the GridSearchCellElement as shown below:
    private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
    {
        GridSearchCellElement searchCellElement = e.CellElement as GridSearchCellElement;
        if (searchCellElement != null)
        {
            searchCellElement.OptionsButton.Visibility = ElementVisibility.Collapsed;
        }
    }



    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.
  3. Arun
    Arun avatar
    6 posts
    Member since:
    Feb 2016

    Posted 08 Jul in reply to Nadya Link to this post

    Thank you very much... 👍
Back to Top