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

JavaScript Error : AutoGenerateWhereClause Cannot be true if Where is defined.

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahipal
Top achievements
Rank 1
Mahipal asked on 05 Mar 2009, 05:24 PM

Hi,

I'm trying to integrate RADGrid control in a ASP.NET Dynamic Data Entities Website and I'm getting the following JAVASCRIPT error when I enable column filtering. The filtering does not work after this error is encountered. I have used sample applications that you provided at http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-and-dynamicdata-entity-web-site.aspx

Error:
"AutoGenerateWhereClause Cannot be true if Where is defined. "

Can you please provide me some pointers on how to enable filtering for the RADGrid in a Dynamic Data Entities WebSite?

 

Thanks

Mahipal

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 Mar 2009, 10:42 AM
Hello Mahipal,

Basically you can use RadGrid in Dynamic Data as in usual WbSite project. The problem when use RadGrid bound to EntityDataSource is that filter parameters are applied on the data source. Thus you will need to set

GridDataSource.AutoGenerateWhereClause=false

to have filtering enabled.

For your convenience I've prepared sample application. You can find it attached to this post.

Kind regards,
Nikolay
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
Mahipal
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or