Wrap your head around the idea that the model controls the view.  Even the 
"data" portions.  You should bind your combo box dataprovider to the model 
property storing that data (from server based on combo box 1 selection).  Why 
you don't need cairngorm for enabling? You can just set you're 2nd combo box's 
enabled property to {combobox1.selectedIndex > -1}. An alternative using 
cairngorm is if your dataprovider (in the model) is null, disable combo box 2, 
if it has data, enable it.
Hope this helps!  

> From: skusunam <skusu...@...>
> To: [email protected]
> Sent: Thursday, April 9, 2009 7:53:48 PM
> Subject: [flexcoders] Cairngorm Question
> 
> 
> 
> 
> 
> Hello Group,
> 
> This is my first question on this group and I have been referring to this 
> group for all my technical challenges with Flex (started using 1 month back). 
> Thanks for such a nice group and support.
> 
> I have a complex screen where I have 2 Combo boxes and by default Combo-2 is 
> disabled and will be enabled only when user selects Combo-1 and Server 
> returns any Objects for Combo-2 otherwise it will be still disabled.
> 
> I have defined an Event `LoadCombo2Event' which is dispatched when user 
> selects an entry from Combo-1 and the results will be handled in 
> `LoadComb2Command' . I do not have access to Combo2 in this command to Enable 
> or Disable? 
> 
> How do we handle this case using Cairngorm?
> 
> Thanks,
> Sre
>

Reply via email to