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

Dynamic data source with filter

2 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 25 Feb 2009, 03:19 PM
Hello
I have a dropdownlist with two options and one radgrid.  The dropdown list options are "populate radgrid with table A" and "populate radgrid with table B".  Basically, the radgrid  datasource is set and bound, depending on the selection in the dropdown (on form load).  That works absolutely fine. I enable sorting on the radgrid - this works absolutely fine too.


However, when filtering is enabled on the grid, it fails to filter at all.

I am not sure if I am going about this the incorrect way with the dropdown list. Maybe someone can provide an alternative method or a solution to the problem.  I believe the problem is that the filter result is overriden by the On Load even data population.

Any info. appreciated
Thanks
R

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 2
answered on 26 Feb 2009, 12:05 PM
*BUMP* - anyone able to provide some advice please?
Thanks
0
Accepted
Sebastian
Telerik team
answered on 02 Mar 2009, 12:38 PM
Hello Richard,

Can you please verify that you bind the grid to data using advanced binding with NeedDataSource event handling or a data source control instead of simple binding with DataBind() calls? Note that the filtering feature of the control requires advanced binding and is not supported with simple binding.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Richard
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or