StrataFrame Forum

Sync 3rd Party Controls with sf form

http://forum.strataframe.net/Topic5708.aspx

By Michael Reese - 1/9/2007

I added SF Infragistics controls to a sf form. When I load the form, the controls are enabled before I select edit or add. Is there a property I can set to sync or do I have to programatically handle this.
By Ivan George Borges - 1/9/2007

Hi Michael.

Try working with the EditingStateChanged method of the BO linked to your control:

Private Sub MyBo_EditingStateChanged(ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) Handles MyBo.EditingStateChanged

Me.MyInfragisticsControl.Enabled = (Me.MyBo.EditingState <> MicroFour.StrataFrame.Business.BusinessEditingState.Idle)

End Sub

Hope it helps.

Cheers.

By Larry Caylor - 1/9/2007

The standard SF controls set the "IgnoreManageReadOnlyState" to False when dropped on a SF form. However, the Infragistcis controls have this property set to True. Changing the property to False should fix your problem.

-Larry

By Michael Reese - 1/9/2007

Thanks Guys,

By the way Gary, are you using the ultragrid? If so, are you utilizing valuelist?

Michael

By StrataFrame Team - 1/10/2007

The standard SF controls set the "IgnoreManageReadOnlyState" to False when dropped on a SF form. However, the Infragistcis controls have this property set to True. Changing the property to False should fix your problem.

Sorry, guys, I guess I never noticed that... that's certainly not the functionality that it should have.  I'll adjust the controls that should be adjusted so that their IgnoreManageReadOnlyState property defaults to False.