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

How to cause postback on filtering?

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 16 Feb 2011, 08:57 PM
I have a RadGrid set up for filtering.  I would like the page to postback (preferably via ajax) when a new filter is applied by the user.  I've searched through the documentation and there doesn't seem to be any sort of "OnFilterApplied" or "OnFilterApplying" event.  How can I accomplish this? 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Feb 2011, 05:00 AM
Hello Trever,


Attach ItemCommand event and check for the CommandName whether it is "FilterCommandName" and execute the server code there.

C#:
if (e.CommandName == RadGrid.FilterCommandName)
{    
     // your code goes here
}



-Shinu.
Tags
Grid
Asked by
Trevor
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or