Csla Light - Any ideas on implementing client-side filtering when using CslaDataProvider for Silverlight

Csla Light - Any ideas on implementing client-side filtering when using CslaDataProvider for Silverlight

Old forum URL: forums.lhotka.net/forums/t/7100.aspx


Jaans posted on Saturday, June 13, 2009

Hi All

I've been merrily working away at a Silverlight LOB application that uses CSLA Business Objects. What I absolutely have to acknowledge is the sterling work Rocky and his team has done with CSLA Light - well done!

Which brings me to my point... what would be a good way to perform filtering of a databound list on the Silverlight client. I have some CSLA BusinessList / ReadOnlyList data on the client and I'm using the CslaDataProvider control.

I could go a more manual route that allows me to keep a reference to the original list and use Linq to provide the filtered results from which the CslaDataProvider control could get its data from (or I could re-bind to ui directly).

To me I'm trying to see if there is an opportunity for doing it in a simpler way, or getting something added to the wish list that will provide a simpler way in future. Something like an event on the CslaProvider control that allows you to hook in you filtering, or something that you can plug-in you filter provider.

Care to share your ideas?

Many thanks
Jaans

RockfordLhotka replied on Saturday, June 13, 2009

The plan is to get a subset of LINQ to CSLA working on the Silverlight platform. That'd allow you to use LINQ queries to do basic sort/filter operations, and get back a LinqBindingList which is a view over the original list.

That's what you'd do today in WPF for example.

There just hasn't been time to get LBL ported over to the SL platform - I'm hopeful that'll come in the relatively near future.

Copyright (c) Marimer LLC