itemeditor

validation in flex datagrid using itemEditor

谁都会走 提交于 2019-12-25 02:53:25
问题 I have a datagrid which conatains two columns. Datatype and value. Datatype has a combobox with options like char, int, unsigned int, signed int etc.Now i want to have validation on what value is entered in value column. I am using following method . <mx:DataGridColumn headerText="Value" dataField="Values" width="100" editable="{!this.areVariablesReadOnly}"> <mx:itemEditor> <mx:Component> <mx:TextInput restrict="0-9" maxChars="3" /> </mx:Component> </mx:itemEditor> </mx:DataGridColumn> This

Selection in a ComboBoxEditor change the row selected in DataGrid

 ̄綄美尐妖づ 提交于 2019-12-24 17:29:27
问题 Here is a good problem : I've got an AdvancedDatagrid with Combobox as ItemEditor (until there, no problems ...). This ComboBoxEditor get this behavior : selection = close editor BUT when I click on a value in the ComboBox, it selecte it and close as wished, but the click also put the selection in the row of the datagrid below, and then open the editor of this row. This comportment appear only with Internet Explorer (8 & 9) Any idea why it's like this with IE, and more important, how to

Commit new value from itemEditor before itemEditEnd event

给你一囗甜甜゛ 提交于 2019-12-13 13:12:36
问题 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 the new value is updated into the dataProvider and hence, the values I have in the function are the old values. Is there any other event that is fired after the

refresh / reload a datagrid in flex

烈酒焚心 提交于 2019-12-11 16:06:46
问题 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. 回答1: Use ArrayCollection, not Array! ArrayCollection provides all the change notification machinery you need. Array does not. 回答2: I'm having a little trouble understanding