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

Multi column filtering on programmatically created grid

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 04 Aug 2010, 10:43 PM
Hello,

I am creating a grid programmatically inside of a user control following option 2 in the following link:

http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html

My problem is that I am unable to filter on multiple columns. Filtering on one column works fine. When I try to filter a second column, the grid is only filtered by the second column. How can I implement a programmatically created grid that is recreated on every post-back that enables filtering on multiple columns?

Thanks,
Rick

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Aug 2010, 03:46 PM
Hello Rick,

The described behavior is expected when you create your grid entirely in code behind. However, in order to persist filtered value you can use our GridSettingsPersister to save/restore grid settings:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

Kind regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pavlina
Telerik team
answered on 29 Sep 2010, 02:35 PM
Hi Rick,

Please excuse me for misleading you in the previous post. I followed your scenario in order to replicate the described issue but to no avail. Attached to this message you can find a simple working project that is working as expected. Please examine it and let me know what is the difference in your scenario.

Looking forward for your reply.

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Rick
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or