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

[Solved] Filter "Does not contain" does not work with DDS

1 Answer 150 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael MSTG
Top achievements
Rank 1
Michael MSTG asked on 20 Jan 2011, 10:17 PM
In working with a domain data source, attempting to use the grid filter "does not contain" causes an argument exception.  I had been using the following code to convert a Telerik filter descriptor to one the DDS can use:

Private Function CreateRiaFilterOperator(ByVal filterOperator As Telerik.Windows.Data.FilterOperator) As System.Windows.Controls.FilterOperator
'conversion from a telerik filter operator to a dds filter operator
Return DirectCast([Enum].Parse(GetType(System.Windows.Controls.FilterOperator), filterOperator.ToString(), True), System.Windows.Controls.FilterOperator)
End Function

I verified this is not working with your online demo as well.
http://demos.telerik.com/silverlight/#GridView/DomainDataSource

We are using version 2010.3.1314.1040

Is there a way to remove the one filter descriptor when using a DDS?

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Jan 2011, 09:46 AM
Hi Michael MSTG,

Microsoft's DomainDataSource simply does not support this operator and there is nothing we can do about it.

In fact, there is. And we have done it.

We have released our very own RadDomainDataSource control which can handle this operator, can handle composite filtering, can integrate with RadControls without a single line of code, and can do many other things.

Here are the release notes.

Due to the unplanned for increase in interest in development of Silverlight line of business applications, we are making our latest addition to our Silverlight suite available before our next major release so we can enable our clients to focus on delivering their great applications without worrying about any “plumbing”. Our new Domain Data Source components ensure codeless integration of all Telerik data bound controls to WCF RIA Services. Now all the powerful data-shaping features of Telerik RadControls can directly translate to your domain service – filtering and sorting operations, for example, are performed directly on the server with minimum development effort. Our Domain Data Services support includes both a component that you can embed in your Silverlight page and a CollectionView Implementation that you can use in your view models for a truly MVVM-enabled scenario.
To explore in depth the new RadDomainDataSource please take a look at the following blog posts:
Here are the online examples for the new control.

I hope this helps.

Regards,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Michael MSTG
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or