Flex :: Capture New Values That Have Been Changed In A Datagrid?
Oct 11, 2010
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 i find that its still giving me the old value and not the new value that I have entered.
View 2 Replies
Similar Posts:
Mar 3, 2011
I receive my parameters as 1's or 0's to fill a datagrid full of checkboxes. The funny bit here is that the checkbox control recognizes them as booleans! But then my checkbox control has a change property in which these numbers are converted to "true" or "false".How can I convert this changes to ones and zeroes again to send them back to database?I believed the ByteArray function "writeAsBoolean" would work, but I forgot the rest of the values inside the datagrid are kept as numbers. So that function will not recognize them and my webservice will ignore them, failing to write the data.
View 2 Replies
Sep 16, 2011
I have a DataGrid, and what I would like to do, is when a user clicks on a row to select it, check a certain condition, and if it's met prevent the row from getting selected and keep the old selection intact.
View 1 Replies
Jul 14, 2009
dg.selectedItems gives me all the values selected, but if i need one column names value alone then what should i do.
<mx:DataGridColumn dataField="1" headerText="Email" />
View 1 Replies
Nov 22, 2009
I want to get all values in one of the columns of a datagrid and put them in an array, to use it as a dataprovider of a combobox, is this possible?
I use an ArrayCollection as the dataprovider of the datagrid, it's filled from the database.
View 1 Replies
Feb 4, 2011
i have a problem using the itemRenderer functionality. When using an ArrayCollection the visible Data in the DataGrid using the itemRenderer will be rendered just fine. But if i start scrolling the entries are repeating in the cells using the renderer. The cells are not filled with date according to the id. What mistake i'm doing here.
I read a lot of the explainations like:
[URL]
here is the code for the set data function (itemRenderer is extending HBox):
override public function set data(value:Object):void {
_data = value;
if(data!=null)
[code]....
View 1 Replies
Jul 11, 2009
I have the follwoing. :
mx:DataGridColumn width="125" headerText="Time" editable="false"
mx:itemRenderer
mx:Component
mx:HBox
[Code]....
How do I provide values from the dataprovider (which is an array of objects) to these individual numeric steppers. dataField cannot be mentioned in the NumericStepper tag it seems.
View 2 Replies
Sep 14, 2010
I have a datagrid with three columns.In one column I have to add all the values and display the total value.
View 1 Replies
Oct 8, 2010
In Flex 4 using a pre populated data grid, how can I get or set specific values programatically, IE I wont be using selectedItems etc.
How do I reference the value of a cell in row 4 colum 6 for example.
View 1 Replies
Nov 10, 2010
Datagrid with 3 columns namely Name,Place and Country. In order to export these columns values to Excel sheet by Clicking a Button called 'Export to Excel'. When Click this button, the values in datagrid is exported in excel sheet.
View 2 Replies
Jan 2, 2012
I have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement:i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .[code]...
View 1 Replies
Oct 8, 2010
I have Flex 4 DataGrid, what I would like to do is when an cell has been edited, I would then like to walk through the values of that column and preform math on the values, e.g., I want to total up certain values.
1) How do I reference individual values of a specific column so that I may set them.
2) How do I then set those values or should I create a new column array and pop it in place of that column.
View 3 Replies
Dec 21, 2010
I have a datagrid in flex and i am making the datagrid as editable. I can able to edit it and enter the values. so far so good. Now my requirement was, i want to restrict the editable datagrid cell to some max chars like 10. I mean to say maxChars = 10, i want to restrict like this & i want to implement like this.
View 3 Replies
Oct 13, 2009
I have a mxml component with a datagrid listing project names and code versions. I have the selected projects from the datagrid binded to a public variable named "selectedProjects". But how to access this variable in another mxml component. I want the selected project's name in that component's text area. I even created an instance of the first component and using that called the selectedProjects variable. But I do not get the value updated in the text area.
This is the code for the first component where I get the selected projects name in a variable:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="handleCreationComplete();"
width="800" height="600">
[Code].....
I was trying to update the value of the selected projects in the text area of Id "projDocs", But I do not get it..
View 1 Replies
Dec 14, 2009
I have a very strange problem in a Flex 3.4 Datagrid. One of the columns is a ComboBox - I have my own custom renderer for the ComboBox. I use it to select my data and then make a "save" to the db. Upon return the comboBox loses its value. Even stranger is that when I scroll the datagrid area to the left (by moving scrollbar right) - the values in the ComboBox change!! When I scroll the datagrid right (by moving the scrollbar left) - the values in the ComboBox don't change.
View 2 Replies
Feb 26, 2010
How to get the values of a selected row in the Advanced DataGrid control in Flex
View 1 Replies
May 6, 2010
I'm using a custom component CheckBoxList DataGrid (http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html) and as dataProvider I have an ArrayCollection with items such this one:
name="item name" selected="true"
I would like the CheckBox list updated when the selected attribute is set to false or true in the data model.
View 1 Replies
Jul 14, 2010
How can i update multiple cells of the same row changing the value of a single cell of the same row ??
Example: id, height, weight, fat percentage, corporal mass. When i change one of the values in a row (except id of course) the corporal mass cell value must change using a formula like: (height/weight2)*fat percentage*100. Is this posible with Datagrid or AdvancedDatagrid in Flex ??
I tried using custom item renders and inserting actionscript code inside the datagrid with no good result.
View 1 Replies
Jun 28, 2011
I have an XML file with this data.
<resultSet>
<MerchandiseAssortmentCategory>
<merchandiseAssortmentCategoryId>275</merchandiseAssortmentCategoryId>
<merchandiseAssortmentCategoryName>D21 Plywood</merchandiseAssortmentCategoryName>
<merchandiseSubordinateClass>
[Code]...
When i run this, only the category name is filled. the subordinateclass number is just blank.
View 2 Replies
Mar 24, 2010
In a DataGrid, how can I force data() of all itemRenderers on visible rows to be called when I've made an update to the dataProvider.I'n the following the Grid isn't updated after pressing doSomething. If I have a large list the update is done when scrolling down and then back up again, or in the case of the TreeGrid i open/close a node.
<?xml version="1.0" ?>
<mx:VBox
xmlns:mx="http://www.adobe.com/2006/mxml"[code].....
View 2 Replies
Jul 13, 2005
I was wondering if it is possible to capture whenever properties are set/accessed/created on dynamic objects?Basically, among others, I want to create a little quick system which acts as an Array and allows you to set the same value of all items inside of it.For example:
Code:
var dynamicObjArray:DynamicObjectArray = new DynamicObjectArray();
dynamicObjArray.push(mc1, mc2, mc3, mc4, mc5, mc6);
[code].....
View 12 Replies
Oct 8, 2009
I was wondering if it is possible to capture whenever properties are set/accessed/created on dynamic objects?Basically, among others, I want to create a little quick system which acts as an Array and allows you to set the same value of all items inside of it.[code]There are several workarounds, (including checking the current value each frame) but I want to know if there is any way of detecting changed properties at all.
View 8 Replies
Aug 10, 2010
I am trying to capture the <graphData> values from the XML file, but I am not sure what I am doing wrong.
Here is my code:
ActionScript Code:
var graphDataXML:XML;
var graphDataXML_Request:URLRequest = new URLRequest("graphdata.xml");
var xmlLoader:URLLoader = new URLLoader();
[code]....
And here is the error:
Quote:
"TypeError: Error #1034: Type Coercion failed: cannot convert XMLList@1c8a1741 to XML."
The first trace statement correctly displays the XML, but I am obviously going wrong somewhere due to the error and the lack of output from the second trace statement.
View 3 Replies
Sep 1, 2011
I have 2 questions: 1. What would be the event to capture the fact a scroll has taken place in a datagrid?
2. Does anyone have any suggestions on how one could disable the scroll of the datagrid when a user clicks a cell then drags out of the datagid?
View 1 Replies
Jan 23, 2012
In my flex datagird i have a checkbox and a datgrid with seven columns. im populating values in first five column(remaining two column no values) of datgrid by an Arraycollection. now,By clicking the checkbox i want to show all seven column values and if i uncheck five columns has to show... how its possible?? heres my code
[Code]...
View 1 Replies
Dec 2, 2009
I'm working on simulating a diagnostic tool and I'm using a dataGrid as part of the sim. I'm populating the dataGrid with an xml file. It loads and runs fine.I need to change the values of the dataGrid cells when the user presses the buttons. For example, if a cell row 0, column 0 has a value of 51, it needs to change to 45-88 when the user presses a button.
View 1 Replies
Jun 14, 2011
I'm new to Flash and PHP. I'm using the FlashBuilder with PHP product. I have a data grid that is connected to a PHP script that retrieves and updates data via the 'Enable Data Management' function. If I modify data on the grid by using the screen and call .commit(), everything works OK.
However I would like to programmatically change some of the values in the data that underly the grid and have those changes get back to the update function in the PHP script when commit(). is called. But I can't figure out how to change the underlying data.
Here's the code I've tried: (the object that I pass back and forth to the PHP script is call MailPiece. I want to set the WORKORDERNUMBER field on each row of the data)
[Code]...
View 1 Replies
Feb 14, 2010
I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);
View 1 Replies
Mar 15, 2010
I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I works fine except for 2 problems:
If I enter to much text, the horizontal srollbar pops up, and the cell is filled with that scrollbar. As you see I tried to set the horizontalScrollPolicy to off, but that doesnt work at all... I tried to do that for all the different elements, but the failure is still existent. When I have filled more than one row, there is an other mistake happening. If I tap on a row, the datagrid selects the one below that row. That's only if one line is already selected. If I tap outside the datagrid and then, tap at any row the itemEditor of the right row will show up... Is there anything now wright in the setup of my set data method?
package components
{
import mx.containers.HBox;
import mx.controls.CheckBox;
[Code]......
View 2 Replies
Mar 24, 2010
From this (normal dataGrid)
into this (horisontal data grid)
How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?)
Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc
View 1 Replies