Removing Gear icon from search row

2 posts, 1 answers
  1. Joshua
    Joshua avatar
    5 posts
    Member since:
    Jun 2018

    Posted 03 Jul 2018 Link to this post

    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

     

     

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4130 posts

    Posted 03 Jul 2018 Link to this post

    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.
Back to Top