![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Hi,
I have a datagrid with a combobox set as one of the datagrid columns. My issue is that I would like to take the maximum value of the column and set the combobox dropdown to this value. Example if the maximum value for the column is 10, I would like to set the values of the combobox dropdown to 11,12,13 etc. Any ideas? i am able to do this for an individual cell, but how can I pass the maximum value to the combobox itemeditor? |
| Sponsored Links |
|
|||
|
here is code i have so far
<mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" dataProvider="{arr}" creationComplete="finished()"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var arr:ArrayCollection = new ArrayCollection(); override public function set data( value:Object ):void { super.data = value; } private function finished():void { arr.addItem(data.col20); arr.addItem(data.col20+1); arr.addItem(data.col20+2); arr.addItem(data.col20+3); arr.addItem(data.col20+4); arr.addItem(data.col20+5); } ]]> </mx:Script> </mx:ComboBox> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise