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 to retrieve the pre edited value of the cell of a datagrid to an itemeditor in a flex
1.9k Views Asked by AudioBubble At
2
There are 2 best solutions below
0
Fabi1816
On
In the "itemEditEnd" event you can access the old value as:
var oldValue:String = event.currentTarget.dataProvider[event.rowIndex].VALUE_FIELD;
and the new value as:
var txtControl:mx.controls.TextInput = event.currentTarget.itemEditorInstance as mx.controls.TextInput;
var newValue:String = txtControl.text;
If you are using a custom itemRenderer you need to change "mx.controls.TextInput" for your custom itemRenderer.
Related Questions in APACHE-FLEX
- How to Run flash applications in any browsers with out adding manual extensions in 2023
- Error: Infra Phase complete, 0/0 resources updated in 02 seconds
- How to replace HTMLLoader to display PDF inside air application
- Air desktop application CSS file and image url
- Flex conditional statement: set VGroup height according to Label Text
- D365 - Azure Devops - Git Repo - How to check the history of a file which is stored in separate folders in the Main branch
- How to access data from row in Grid while selecting it so that further it can be used in Text Field below in Adobe Flex (ActionScript)?
- Actionscript: Access of possibly undefined property id
- Adobe flex in 2021
- How i can add cron entry without time using chef
- Equivalent of parent parentDocument from flex
- Captive runtime packaging issue (Failed to load the AIR Runtime) under Catalina 10.15.7 with ADT
- Getting error while running curl command via chef
- How can I create a context menu on the fly in a textArea in AS3/AIR?
- Flex SDK installer fails to download https://github.com/swfobject/swfobject/archive/2.2.zip
Related Questions in DATAGRID
- The filtering screen in mui datagrid is broken
- Mudblazor: MudDataGrid KeyBoardNavigation
- how to create a datatable with multiple data listing and sorting in same column?
- The radgridview row data count in WPF
- Mudblazor Datagrid Pre-loaded filter
- How to pass MUI Datagrid props to Modal on Action Button Click
- Unable to multiselect (SelectionMode="Extended") row in a WPF datagrid
- Unexpected vertical lines when resizing a DataGrid
- How to get column and row index from Powershell XAML gui datagrid?
- wpf datagrid does not bubble the scrollwheel event
- selection not working in data grid, maybe it's not updating
- WPF DataGrid adds a column with the name of a class variable, unable to get contents of cells
- right arrow key is not working in WPF Devepress TextEdit
- .NET 6 to .NET 8 troubleshooting
- wpf scrollintoview high cpu and freezing
Related Questions in RETURN
- Clang possibly skipping line(s) of code while compiling
- Why it returns max anyway?
- Storing user inputs as parameters for a function
- Return struct containing borrowed value in rust
- Why does the following base case for recursion in C not work?
- Why does return statement return's default value
- Nested commands
- Assigning a function to a variable, but the value returns undefined
- Unable to filter and get just the return variable from a .ps1 script execution
- Return partial View if model state was not valid
- Does this use of "new Mystring" create a memory leak? C++
- List not being returned from function
- Vlookup based on one column but return value based on other column with Max ID using Excel formula
- Why does the function always return 0? (function + tkinter + global variables)
- How to resolve the NS_ERROR_FILE_TOO_BIG error in a POST request in PHP?
Related Questions in ITEMEDITOR
- How can I sort the 2nd column from 100 CSV files with EmEditor?
- Emeditor Multiple Marking
- How ItemRenderer is different from ItemEditor in Flex 4?
- Flex dispatchEvent to exit an ItemEditor
- validation in flex datagrid using itemEditor
- Flex Datagrid Itemeditor: Show Label of choice, but retrieve value at commit
- Replace comma with dot in Flex HierarchicalData with own renderer as itemEditor does not work
- Combobox's list not in proper position
- Flexicious - Close itemEditor
- Flexicious Ultimate DataGrid keep focus in itemEditor when clicking on scroll bar
- Selection in a ComboBoxEditor change the row selected in DataGrid
- Make item editor editable of the advancedatagrid in flex
- Using a ComboBox as ItemEditor in Flex 4
- Flex Spark DataGrid: ReferenceError #1069 in GridItemEditor
- Flex - how to create a simple inline checkbox itemeditor in a spark datagridcolumn?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't think it is possible to get the old value once you are in the item editor. I would do this manually by listening to the "itemEditBeginning" event and keeping a variable with the value of the cell. You can then reference that value through the "parent", "parentDocument" or "outerDocument" properties in the item editor, depending on whether you are using an inline item editor or a separate class.