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

Removing Gear icon from search row

1 Answer 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 03 Jul 2018, 09:24 AM

Is there any way i cant remove the gear icon from next to my search bar in my grid ,and also is there a way to move the search bar to above the Headers

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Jul 2018, 10:37 AM
Hello, Joshua,    

In order to hide the gear icon, it is suitable to subscribe to the ViewCellFormatting event and set the GridSearchCellElement.OptionsButton.Visibility property to Collapsed:
 
private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
    GridSearchCellElement searchCell = e.CellElement as GridSearchCellElement;
    if (searchCell!=null)
    {
        searchCell.OptionsButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    }
}

I hope this information helps. If you have any additional questions, please let me know. 
 
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or