SearchRow event

2 posts, 0 answers
  1. Jason Parrish
    Jason Parrish avatar
    92 posts
    Member since:
    Sep 2009

    Posted 20 Jan 2017 Link to this post

    I have a toggle button that shows/hides the search row.  However, I need to capture the close event of the search row so I can change the toggle button state. This is needed because the user can click the X to close the search row.  Or, can I hide the X button?



  2. Dimitar
    Dimitar avatar
    2823 posts

    Posted 23 Jan 2017 Link to this post

    Hi Jason,

    Thank you for writing.

    To determine when the search row is hidden/shown you should use the PropertyChanged event. The following example shows how you can use this event. It shows how you can hide the close button as well:
    protected override void OnLoad(EventArgs e)
        var searchRow = radGridView1.MasterView.TableSearchRow as GridViewSearchRowInfo;
        searchRow.PropertyChanged += SearchRow_PropertyChanged;
        searchRow.ShowCloseButton = false;
    private void SearchRow_PropertyChanged(object sender, PropertyChangedEventArgs e)
        if (e.PropertyName == "IsVisible")

    I hope this will be useful. Let me know if you have additional questions.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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