Hi,
I have a raddataservicedatasource setup in my xaml like below:
I am trying to filter in the backend using FilterDescriptors but for some reason it never seems to go back to the server and apply the filter descriptors. Also the canload property is false after I add the descriptor to the data source.
Here is the code I am using to do the filtering:
Any advice would be greatly appreciated.
I have a raddataservicedatasource setup in my xaml like below:
<
telerik:RadDataServiceDataSource
x:Name
=
"dataServiceDataSource"
AutoLoad
=
"True"
QueryName
=
"Accounts"
Margin
=
"320,21,320,193"
>
<
telerik:RadDataServiceDataSource.DataServiceContext
>
<
local:MyEntities
/>
</
telerik:RadDataServiceDataSource.DataServiceContext
>
</
telerik:RadDataServiceDataSource
>
Here is the code I am using to do the filtering:
AccountDetailsFilter =
new
FilterDescriptor(
"accountID_pk"
, FilterOperator.IsEqualTo, a.accountID);
dataServiceDataSource.FilterDescriptors.Add(AccountDetailsFilter);
Any advice would be greatly appreciated.