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

[Solved] FilterDescriptors Property for ASP.NET MVC Grid?

3 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew Vermeulen
Top achievements
Rank 1
Matthew Vermeulen asked on 07 Dec 2009, 06:16 AM
I have read on a couple of blogs that the RadGridView allows the developer to programmatically set the FilterDescriptors property in order to bypass the UI filtering options on the grid.

As far as I can see, this property is absent on the regular ASP.NET MVC Grid control.

Are there any plans to add this functionality?  Or is there some other way I can achieve the same result?

Best Regards,
Matt Vermeulen

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Dec 2009, 09:03 AM
Hi Matthew Vermeulen,

Currently the MVC grid does not support programmatic filtering. Filtering can only be achieved using the provided UI. Could you please elaborate on your requirement? Perhaps you can filter the data prior to binding it to the grid.


Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Matthew Vermeulen
Top achievements
Rank 1
answered on 08 Dec 2009, 07:58 AM
Stravstvoi Atanas,

Thanks for your prompt reply. 

Yes, we can easily filter the data prior to loading the grid, however we are expecting very large result sets, and the problem then comes in that we need to post back the same filter that was initially used when requesting subsequent pages. 

If we could set the filter on the grid when we initially create it, the filter parameters would be automatically posted back via the grids built in paging functionality.

Is this functionality expected to be added in a future release?  Otherwise the only workaround we can see at this stage is to store the users current filter in the session on the server, which is obviously not ideal.

Cheers,
Matt
0
Atanas Korchev
Telerik team
answered on 08 Dec 2009, 08:58 AM
Hi Matthew Vermeulen,

 Thank you for the clarification. Indeed this sounds like a nice to have feature (setting the filter from API) and I have logged it for implementation.


Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Matthew Vermeulen
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Matthew Vermeulen
Top achievements
Rank 1
Share this question
or