Help please! New to CSLA and UltraWinGrid

Help please! New to CSLA and UltraWinGrid

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


gmui posted on Saturday, June 21, 2008

Hi,
I have to build a prototype app this weekend using Infragistic's UltraWinGrid and came across CSLA last night.  I know there's a bunch to read and learn, but I was hoping to see if there were any examples of using CSLA to make binding to the UltraWinGrid to my List of business objects easier.  Most things I've seen show how to bind to datasources (like databases) but since I'll be getting Lists of objects retrieved from a Java server, I'd like to bind to a List of objects.  I'm not using Webservices so my source is not in XML form (Using Hessian service exported from a Java / Spring server).

Does this seem like a good application of CSLA.NET?

Thanks,
Gary

nermin replied on Saturday, June 21, 2008

With standard list of objects, (anything implementing IList, I believe) you get one way binding – read only grid.  In order to make grid “editable” your list needs to implement IBindingList, which is a complex interface.  But if your list inherits form Csla’s BindingListBase (which implements that interface for you) then you get an “editable list” that can be bound to your grid.

 

Csla objects and lists can be serialized /deserialized from database, web service, file it does not matter.  It is up to you and the implementation goes to DataPortal_Create, DataPortal_Fetch, DataPortal_Update, … methods.  So basically inside those methods you just need to define mapping from/to Java/Spring service DTOs.

 

Nermin

 

From: gmui [mailto:cslanet@lhotka.net]
Sent: Saturday, June 21, 2008 10:27 AM
To: Nermin Dibek
Subject: [CSLA .NET] Help please! New to CSLA and UltraWinGrid

 

Hi,
I have to build a prototype app this weekend using Infragistic's UltraWinGrid and came across CSLA last night.  I know there's a bunch to read and learn, but I was hoping to see if there were any examples of using CSLA to make binding to the UltraWinGrid to my List of business objects easier.  Most things I've seen show how to bind to datasources (like databases) but since I'll be getting Lists of objects retrieved from a Java server, I'd like to bind to a List of objects.  I'm not using Webservices so my source is not in XML form (Using Hessian service exported from a Java / Spring server).

Does this seem like a good application of CSLA.NET?

Thanks,
Gary


gmui replied on Saturday, June 21, 2008

Hi Nermin,

Thanks for the reply and info.  I wasn't able to find BindingListBase - did you mean BusinessListBase?

Thanks,
Gary

nermin replied on Sunday, June 22, 2008

Yes, exactly - BusinessListBase.  Sorry for the typo.

Nermin

 

From: gmui [mailto:cslanet@lhotka.net]
Sent: Saturday, June 21, 2008 8:14 PM
To: Nermin Dibek
Subject: Re: [CSLA .NET] RE: Help please! New to CSLA and UltraWinGrid

 

Hi Nermin,

Thanks for the reply and info.  I wasn't able to find BindingListBase - did you mean BusinessListBase?

Thanks,
Gary


Copyright (c) Marimer LLC