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

Hide Settings Button in Search

2 Answers 189 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 2
Iron
Arun asked on 07 Jul 2019, 09:01 AM

Hi, 

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

Image attached.

Thanks in advance

2 Answers, 1 is accepted

Sort by
1
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 08 Jul 2019, 01:55 PM
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.
0
Arun
Top achievements
Rank 2
Iron
answered on 08 Jul 2019, 04:23 PM
Thank you very much... 👍
Tags
GridView
Asked by
Arun
Top achievements
Rank 2
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Arun
Top achievements
Rank 2
Iron
Share this question
or