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

Expose more Filter events

1 Answer 3 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 26 Oct 2014, 03:48 AM
Currently the gridview exposes a few events originating from the filter. But I need more. I need to know when the user clicks the filter "textbox" (enter or beginedit) and when the user closes it (leave or endedit). I'm certain internally these events are available, but is there any way to expose them to my code?

Regards,
Martin

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 29 Oct 2014, 01:00 PM
Hello Martin,

Thank you for contacting us.

To achieve the desired results you can use the existing events. For example you can find out whether a FilterCell is being edited in the CellBeginEdit event as follows:
void Grid_CellBeginEdit(object sender, GridViewCellCancelEventArgs e
{
    if (this.Grid.CurrentCell is GridFilterCellElement)
    {
 
    }
}

Similar techniques can be used for other similar scenarios. The RadControlSpy tool can be helpful for such scenarios as it will help you determine the type of the desired UI element.

Let me know, should you require further assistance.

Regards,
George
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or