SilverlightShow: Creating application with WCF RIA Services Part 5 – Sorting and Filtering data Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data that's realy good thing? but what about <span style="color: #800000;">FilterDescriptorCollection<span style="color: #0000ff;"></span></span> binding using MVVM pattern?? http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3915 Calabonga http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Mon, 05 Jul 2010 04:59:00 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Filtering appeazrs to all have conjunctive "AND" if the a way to interpret and "OR" conjunctive?</p> <p> </p> <p>Thanks.........Les</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3885 les.prigmore http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 29 Jun 2010 04:18:57 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Use a Value Converter to convert the string to an integer.</p> <p>Here is a good example:</p> <p><a href="http://www.silverlight.net/learn/videos/all/net-ria-services-intro/"><span style="color: #1ca0f2;">http://www.silverlight.net/learn/videos/all/net-ria-services-intro/</span></a></p> <p>I hope that it helps.</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3884 les.prigmore http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 29 Jun 2010 04:15:47 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>1st, thanks for the example.</p> <p>questions: does the filter only accept string type parameter?</p> <p>if not, could you please give an example that use FilterOperator.IsContainedIn which parameter's value is an array of integer?</p> <p>thanks, </p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3522 Lingo http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Sat, 01 May 2010 00:02:49 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>1st, thanks for the example.</p> <p>questions: does the filter only accept string type parameter?</p> <p>if not, could you please give an example that use FilterOperator.IsContainedIn which parameter's value is an array of integer?</p> <p>thanks, </p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3521 Lingo http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Fri, 30 Apr 2010 23:59:14 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Sorting / Filtering / Grouping is really will be easy with using "RIA Services DataFilter Control for Silverlight".</p> <p>http://riadatafilter.codeplex.com/</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment3102 Alexander http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Thu, 18 Feb 2010 21:23:40 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data Hi I already solve my problem it was my xaml namespace that type in as wrong name... http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2898 raccoon http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 12 Jan 2010 16:51:24 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Hi I have the same problem with Liem... </p> <p>this is the error that I found in my project</p> <p>Error 1 The tag 'ControlParameter' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Ria.Controls'. C:\Users\Silverlight3\Desktop\REVDemocode\WCFRIAServices\HRApp\HRApp\Views\EmployeeList.xaml 41 34 HRApp</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2897 raccoon http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 12 Jan 2010 16:20:45 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Liem,</p> <p>Look in System.Windows.Controls in assembly System.Windows.Control.Ria.dll. I believe you may find it there.</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2859 JD http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Wed, 30 Dec 2009 01:11:33 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <div>I am using System.Windows.Ria.dll version 1.0.41110.0 (the latest one so far) in Windows7.</div><div><br /></div><div>I could not find ControlParameter in namespace System.Windows.Data in assembly System.Windows.Control.Ria.dll, therefore i could not filtering. Please help me.</div><div><br /></div><div>Thanks.</div> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2790 Liem http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Wed, 16 Dec 2009 11:44:14 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data Hi, thanks for nice article, i created one on similar lines, one of my database field is DateTime, my observation is when it stores the data in DB it stores correctly in local DataTime but when it is displayed using dataGrid it is dispayed in UTC format. Have you seen anything like this? <p> Thanks,</p> <p>Vijay</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2358 vijay http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Wed, 16 Sep 2009 14:23:01 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data Hello bro, <p>I want to built a search form contains textbox, combobox, datetimepicker and a button Search. When I click this button, I will rebind my Grid. How to do it in code ?</p> <p>Please help me!</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2214 greenlight http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Fri, 07 Aug 2009 12:06:30 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data The live demo seems not work with the relase version SL 3. <p>Also, using the sources and compiling, I get many errors, probably because it is designed using SL beta. Please, can you update it to the release version?</p> <p> </p> <p>Thank you</p> <br /> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment2174 Xavi http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 28 Jul 2009 12:51:13 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data <p>Martin:</p> <p>Use this for the SortDescriptors instead:</p> <p> </p> <pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: rgb(244,244,244); margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, 'courier new', courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff"><</span><span style="color: #800000">ria:DomainDataSource.SortDescriptors</span><span style="color: #0000ff">></span></pre> <pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: rgb(244,244,244); margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, 'courier new', courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> <span style="color: #0000ff"><</span><span style="color: #800000">riaData:SortDescriptor</span> <span style="color: #ff0000">Direction</span><span style="color: #0000ff">="Ascending"</span> <span style="color: #ff0000">PropertyPath</span><span style="color: #0000ff">="aspnet_Membership.IsApproved"</span> <span style="color: #0000ff">/></span></pre> <pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, 'courier new', courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> <span style="color: #0000ff"><</span><span style="color: #800000">riaData:SortDescriptor</span> <span style="color: #ff0000">Direction</span><span style="color: #0000ff">="Ascending"</span> <span style="color: #ff0000">PropertyPath</span><span style="color: #0000ff">="UserName"</span> <span style="color: #0000ff">/></span></pre> <pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, 'courier new', courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff"></</span><span style="color: #800000">ria:DomainDataSource.SortDescriptors</span><span style="color: #0000ff">></span></pre> <p>(your code sample is creating a collection and trying to set it to a read-only property.</p> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment1656 MichaelD! http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Fri, 12 Jun 2009 16:05:39 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data This is very good exercise for those who just start silverlight. http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment1522 Dharmender Kumar http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Tue, 28 Apr 2009 10:22:33 GMT RE: Creating application with .NET RIA Services Part 5 – Sorting and Filtering data Hi,<div><br /></div><div>I try to filter a datagrid (\w data from a domaindatasource) using a textbox. I want the data to be filtered on two columns of the grid. is there a way to do this with the domaindatasource filterdescriptors, eg by adding two filterdescriptors for that textbox? I tried, but dont get any results.</div> http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx#comment1503 Lmondria http://www.silverlightshow.net/items/Creating-application-with-.NET-RIA-Services-Part-5-Sorting-and-Filtering-data.aspx Thu, 23 Apr 2009 07:46:34 GMT