If I have a RadGrid set up declaratively using an EntityDataSource, how can I set up filtering to cater for entity associations?
For example, in the EntityDataSource, this will not work if I try to filter on "Model":
Select="it.[Id], it.[ModelId], it.[Model].[Name] AS Model"
This results in an error:
Error: Sys.WebForms.PageRequestManagerServerErrorException: LIKE arguments must be of string type. Near member access expression, line 8, column 4.
The auto-generated column (by selecting Refresh Schema in the design view of the EntityDataSource control) is as follows:
Richard
For example, in the EntityDataSource, this will not work if I try to filter on "Model":
Select="it.[Id], it.[ModelId], it.[Model].[Name] AS Model"
This results in an error:
Error: Sys.WebForms.PageRequestManagerServerErrorException: LIKE arguments must be of string type. Near member access expression, line 8, column 4.
The auto-generated column (by selecting Refresh Schema in the design view of the EntityDataSource control) is as follows:
<telerik:GridBoundColumn DataField="Model" DataType="System.String" FilterControlAltText="Filter Model column" HeaderText="Model" ReadOnly="True" SortExpression="Model" UniqueName="Model"></telerik:GridBoundColumn>Richard
