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

RadGird on Filter does not filre the event Need Datasource or ItemCommand

1 Answer 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 11 Mar 2011, 03:20 PM
hi
We are using RadGrid in our application we have a issue that when we apply filter we are not able to trap which events are getting fired.since our objective is to get filter dataset which it apply to grid thatshow filter record.
 Can you please tell us how we can get this filter dataset when we apply filter on RadGrid.
please Relpy ASAP as we have goLive on Monday

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 Mar 2011, 11:19 AM
Hello Manishkumar,

When you are filtering RadGrid using its built-in filter functionalities, the ItemCommand event is fired where e.CommandName is RadGrid.FilterCommandName. There the grid filter expression is not already built. You can cancel the connald and handle the filtering as desired. After that, if the grid is bound through its NeedDataSource event, it is fired, where you can get the already built FilterExpression and use it for your purpose.

All the best,
Iana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or