itemeditor

Flex: Using NumericStepper as an itemEditor in a DataGrid

I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed. Based on what I have read in a billion different places, the syntax should be < mx:DataGridColumn dataField="a" itemRenderer="mx.controls.NumericStepper" rend...

Flex:How to retrieve the pre edited value of the cell of a datagrid to an itemeditor in a flex

I wrote a custom item editor for a datagrid in flex. My question is how to retrieve the pre-edited value of the datagrid cell after the item editor initializes and also in the custom item editors code. ...

How do I make an item editor in a flex list component commit it's changes?

I have a list component and I have an item editor for the items in the list. I would like to have a button that the user clicks once they are done with their changes because I am having them edit multiple pieces of data in the editor and I would also like to validate the data before closing the editor as well. I just don't know what to d...

How can I trigger an itemEditEnd Event in a Flex List when the CheckBox is checked/unchecked?

I have a List component that has drop-in CheckBox itemEditor that also serves as the itemRenderer. It displays each item as a simple CheckBox with a label. However, the itemEditEnd Event does not get triggered until I click on something outside of the List. I want it triggered once the CheckBox is checked or unchecked. I was thinking o...

refresh / reload a datagrid in flex

I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns. Ideally datagrid.invalidateList() method works to reload the datagrid with new dataProvider data. But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid. ...

Commit new value from itemEditor before itemEditEnd event

Hello, I have a DataGrid, with itemEditor as NumericStepper in a few columns. When a value in the DataGrid is edited, I would like to update several values displayed on the screen, and so want to call a updateValues() function. First, I added this function to itemEditEnd event of the DataGrid, but the function is getting called before ...

how to prevent itemeditor destruction?

My custom item editor opens a titlewindow (too much stuff to show in an inline editor) which obviously steal the focus, so I get a itemeditend event and the datagrid destroy the editor at the wrong (for me) time. I think to have to keep the itemeditor alive until the titlewindow job is done, but how? DataGridEvent reason is "other" and l...

DataGrid - Edit the selected row when a button is clicked.

Hi all. I have a very simple DataGrid with 2 columns, some thing like this: <mx:DataGrid id="grid" > <mx:columns> <mx:DataGridColumn dataField="name" headerText="Name"/> <mx:DataGridColumn dataField="date" headerText="Date"/> </mx:columns> </mx:DataGrid> What Im trying to do is to activate the edition of the s...

Flex Tree Control how to get the itemEditorInstance of a just added xml node

Hi everybody, I have a Tree Control on which I let user add some nodes. When a node gets added I want to let the user edit the added control right away. How do I get the itemEditorInstance of a just added xml node? Thanks for hints! Markus ...

Flex 3 custom ItemRenderer and Editor Issue

Hi, I've created a custom ItemRenderer extending UIComponent and implementing IListItemRenderer. This renderer contains a Text-Object to display the value. For editing I'm using the standard ItemEditor (TextInput). Now, when I want to edit a value, I click on a cell and the editor is created. But instead of displaying the value which ...

flex: cant edit item in Datagrid with override set data method

Hi everybody, I've a custom itemRenderer for my datagrid. To set the actual data I use the following method: override public function set data(side:Object):void{ ... } As soon as I use this function the cell doesn't show up any item Editor anymore. Why is that? When I remove this function the itemEditor is working but with the wro...

flex: entering itemEditor when no value is assigned to data property in custom itemRenderer

Hi there, Im having a strange problem with my custom itemRenderer in the following Methode I assign the values to the cell. The problem is, when the side.element is still empty. In this case the itemEditor will not show up by default... override public function set data(side:Object):void{ super.data = side.element.toString(); c...

Flex ItemRenderer/Editor ComboBox Issue...Puhleezz Help

Hi EveryOne Beginner in Flex ...Even worse with item renderers... Have managed to add a Combobox to a datagrid using a itemEditor... I want to change the options in a combo box depending on the value selected by the user on a previous combo.. In the combo box i want to display a certain value (Model Name ) but for quering a table i'll...

Flex DataGrid with variable custom itemEditor on a DataGridColumn

Is there anyway to create a custom item editor based on the dataField value? For example: <mx:DataGrid editable="true" dataProvider="{_actionArr}" id="prop"> <mx:column> <mx:DataGridColumn headerText="Component" editable="false" dataField="label"/> <mx:DataGridColumn headerText="Value" editable="true" itemEditor="{data.ie}"...

Gettinf Property **text** not found error in DataGrid

Hi All, I am using a custom itemEditor for my DataGrid. The itemEditor has a simple TextField as a component. But when ever i am clicking the cell i am getting an error as : ReferenceError: Error #1069: Property text not found on editors.customItemEditor and there is no default value. at mx.controls::DataGrid/itemEditorItemEditEndHandl...

destroy open item editor or item renderer in flex

Is it possible to destroy/close open item editor or item renderer of a datagrid in different mxml page? I heard about the functions editedItemRenderer and destroyItemEditor on Datagrid. Can I use these functions in different mxml page? ...

Adobe Flex ItemEditor

Hi, I have a datagrid column as follows: <mx:DataGridColumn headerText="Description" dataField="description" editable="true" editorXOffset="2" editorYOffset="2" editorHeightOffset="20" editorWidthOffset="60" itemEditor="com.jono.controls.DgItemEditor" wordWrap="true" /> And a very simple DgItemEditor: <?xml version="1.0" enco...

Trigger an itemEditEnd event within the itemEditor

This might be an easy one for you DataGrid experts out there. I following an example for adding rows to a DataGrid dynamically from within a row http://www.switchonthecode.com/tutorials/adding-dynamic-rows-to-flex-datagrid My tweak that I am trying to acoomlish, is to have a custom itemEditor that is a form with two TextInputs and an O...

What event handler can i use to capture new values that have been changed in a flex datagrid.

I have an editable grid and would like to update values based on the edited cell and i am doing this in the itemEditEndHandler such that when they finish editing a cell i update other cells that are dependent on it. the only problem is in the itemEditEndHandler the new value has not registered yet. If i try and get the value of the cell ...