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

[Solved] Issue with Filtering and Paging/Sorting

3 Answers 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 05 May 2008, 06:27 PM
I am binding a rad grid to a generic collection of objects with custom properties.

I can get the grid to filter on the custom properties if I toggle EnableViewState, of course that removes the ability to page and sort. If EnableViewstate is toggled to true then paging and sorting work fine, but I can no longer filter against the properties that are not part of the base object.

Is there a solution for this?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 May 2008, 12:43 PM
Hello Jason,

Can you please provide more info about your scenario? How the grid is bound in your case (NeedDataSource, ObjectDataSource, etc.)? Do you use programmatic creation or the grid is declared statically on the page?

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason
Top achievements
Rank 1
answered on 07 May 2008, 06:09 PM
In this instance I am using the needdatasource method. I basically have an object for example

Client Profile which in the database just has a Client ID to tie it back to the client, on the client profile object I add a property ClientFullName. I am binding the grid to a collection of client profile objects. When enableviewstate is set to false, I can filter the column ClientFullName, but then sorting and paging do not work, when enableviewstate is set to true filtering by my custom property no longer works.

Thanks for your attention on this,

Jason Yost
0
Vlad
Telerik team
answered on 10 May 2008, 03:22 PM
Hi Jason,

I tried to replicate this however everything worked fine on my end - I have attached small example.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jason
Top achievements
Rank 1
Share this question
or