CSLA 1.5 DataBinding in NetAdvantage

CSLA 1.5 DataBinding in NetAdvantage

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


Pradeep posted on Monday, May 08, 2006

Hi all,
I am using CSLA 1.5 and NetAdvantage for my UI. I have a form which uses a CSLA businessBase derived object as the base object. In the form I have a NetAdvantage Toolbar with a save button.
 
I am not sure how to bind the IsValid property of my base object to this toolbar button. Looks like the NetAdvantage toolbar button does not have a databinding's property.
 
So If anyone have come across this problem please let me know how you fixed it. I didn't get any help from Infragistics support on this.
 
Thank you in advance...

ward0093 replied on Monday, May 08, 2006

I have tried it many differennt ways... the fact is that there is no Databinding in the ToolbarManager at all... I have a similiar setup...  You have to program the toolclick even manaully.

If I am wrong please let me know.

ward0093

Pradeep replied on Monday, May 08, 2006

On just trying out few things, I noticed one more issue.  I have a Order form. This inside has Order Control and LineItems control. When I first create a new Order, I will create a new Order object (Order.NewOrder())  in the Order Form and pass that object to the Order control.
 
What's happening is that, the Save button is on the Order Form and NOT on Order control. So I think, the IsDirtyChanged event is not propagated properly to the Order Form and thus not enabling the Save button, when there are any modifications to the fields in the Order Control.
 
On the other hand, I tried keeping all the Order form without Order control (meaning having all order properties just on form not inside a control). In this case, the Save button on the orde form is getting enabled properly.
 
Any thoughts ??
 
 

Copyright (c) Marimer LLC