Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-16-2007, 07:40 PM   #1
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

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

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

[Bindable]	public var enableDisable:Boolean	=	false;

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


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

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 01:55 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.