CSLA SilverLight Question

CSLA SilverLight Question

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


SouthSpawn posted on Saturday, August 29, 2009

I notice that when I do the following.
 
 <Button x:Name="CompanyAction_Button"
                        Content="Update Company" Grid.Column="2" Grid.Row="10" Width="125" HorizontalAlignment="Left"
                        csla:InvokeMethod.TriggerEvent="Click"
                        csla:InvokeMethod.Resource="{StaticResource CompanyDetailsData}"
                        csla:InvokeMethod.MethodName="Save"><Button>

CSLA will automatically disable the button for me.

So it expects the user to type in something, then "TAB" off for the control to become enable.

I am a "Mouse" guy.
So if I change something in one of my fields, then use the mouse directly to try and save the data.
The button still will become disabled.
 
How do I shut this feature off.

Thanks
 
 

sergeyb replied on Sunday, August 30, 2009

You can turn it off via ManualEnableControl property on InvokeMethod.  Just set it to true.  You will need to handle validation exception somehow at that point though.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: SouthSpawn [mailto:cslanet@lhotka.net]
Sent: Saturday, August 29, 2009 9:30 PM
To: Sergey Barskiy
Subject: [CSLA .NET] CSLA SilverLight Question

 

I notice that when I do the following.

 

 <Button x:Name="CompanyAction_Button"
                        Content="Update Company" Grid.Column="2" Grid.Row="10" Width="125" HorizontalAlignment="Left"
                        csla:InvokeMethod.TriggerEvent="Click"
                        csla:InvokeMethod.Resource="{StaticResource CompanyDetailsData}"
                        csla:InvokeMethod.MethodName="Save"><Button>


CSLA will automatically disable the button for me.


So it expects the user to type in something, then "TAB" off for the control to become enable.

I am a "Mouse" guy.

So if I change something in one of my fields, then use the mouse directly to try and save the data.

The button still will become disabled.

 

How do I shut this feature off.


Thanks

 

 



SouthSpawn replied on Sunday, August 30, 2009

Will it be "possible" to grab the provider object and read the list of "broken business rules" off of the provider object?

Copyright (c) Marimer LLC