Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-16-2007, 07:40 PM   #1
smramkumar
Registered User
 
Join Date: Oct 2007
Posts: 1
Default How to Disable the Combobox inside a Datagrid

Hi ,

I have a Datagrid which has 3 columns .... each column has a Combobox.. for my case , In a row i have to disable the 3rd combobox based upon the value selected in the second Combobox...

for example.... my second combobox name is Formula.....

what i want to do is... if the selected value in the Formula combobox is "Constant" then disable the Third combobox in this row...

i dont know how to do this.... please note this all the comboboxes are inside the Datagrid...


Thanks in advance

Ram
smramkumar is offline   Reply With Quote
Old 01-15-2009, 03:53 PM   #2
bidur
Registered User
 
Join Date: Jul 2008
Posts: 15
Default

Hi,
I had a similar case with checkbox rendered in the dataGrid. I think similar logic may work with this case as well

Code:
<mx:Script>
    <![CDATA[
[Bindable]	public var enableDisable:Boolean	=	false;

//here  u can have your own logic to alter the
// value of this variable "enableDisable"

]]>	
</mx:Script>

<mx:DataGrid  id="dgList">
		<mx:columns>
			<mx:DataGridColumn headerText="Tab Name" dataField="tabName" width="200"/>
			<mx:DataGridColumn headerText="Add" dataField="addStatus"  width="50">
<mx:itemRenderer>
	<mx:Component >
	<mx:HBox> 					
	<mx:CheckBox  enabled = "{outerDocument.enableDisable}" click="data.addStatus=!data.addStatus" selected="data.addStatus}"/>		
	</mx:HBox>	
					  </mx:Component>						
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:DataGrid>
regards,
bidur
bidur is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox code to open external swf in movie clip yomsbea Components 5 10-29-2008 01:58 AM
Combobox AMFPHP and a Datagrid orionzwei Components 3 10-30-2006 06:50 PM
ComboBox Cell Rendering, Problems loading values into it mwiley43 Components 2 10-30-2006 06:46 PM
Combobox inside of a window doesn't work reynoldsdesign Components 1 06-07-2005 12:19 AM
Problems with a combobox inside a window nankar Components 2 05-16-2005 07:17 AM


All times are GMT. The time now is 07:04 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.