RadGridView - Filter Click Event

1 Answer 82 Views
GridView
Premkumar
Top achievements
Rank 1
Iron
Iron
Premkumar asked on 22 Nov 2022, 11:45 AM

Hello Telerik Team,

I want to access the Click event or MouseLeftButtonDown event for each Filter icon of the RadGridView Columns.

Please give us a sample application to do that.

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 23 Nov 2022, 01:51 PM

Hello Premkumar,

Currently, the RadGridView control does not expose such API, however, this looks like a good addition to the control's functionality. As a result of this, I have logged a new feature request in our feedback portal regarding it. The public item could be found at the following link:

GridView: Introduce event or events that will occur when the FilteringDropDown element is clicked (telerik.com)

For the time being, a possible solution would be to include a new event handler for the MouseLeftButtonDown event of the FilteringDropDown class using the EventManager's RegisterClassHandler method.

The following code snippet shows this suggestion's implementation:

EventManager.RegisterClassHandler(typeof(FilteringDropDown), UIElement.MouseLeftButtonDownEvent, new RoutedEventHandler(OnExecuted), true);

private void OnExecuted(object sender, RoutedEventArgs e)
{
    //execute custom logic
}

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Premkumar
Top achievements
Rank 1
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or