ActionScript 3.0 :: Flex Data Grid - Update Column With Variable (not From Data Provider)?

Jul 27, 2009

I have a data grid who's data provider is set to an XML object.

<mx:DataGrid id="streamMonitorGrid" dataProvider="{}" height="100%" width="100%">


View 5 Replies

Similar Posts:

Flex :: Update Hierarchical Data Provider In Advanced Data Grid During Drag And Drop?

Nov 11, 2010

I am trying to drag and drop hierarchical data in the same advanced data grid, and I would like the data provider to updated when the ADG is updated. (I want to be able to save and load this tree, so it is important that drags and drops are saved.)


The sample app has an ADG showing hierarchical data as well as flat data. The first column of each datagrid shows the rowindex of the underlying data.

If you rearrange the items on the left ADG, the row indexes become unordered. If you click traceTree you see that the data provider is not in order.

On the other hand if you do the same on the right, the row numbers stay ordered even when the objects move around and if you click traceFlat, the data provider is in the order shown on ADG

My goal is to have the data provider order match the ADG order for the left grid which is displaying hierarchical data.

View 1 Replies

Flex :: Data Grid Crashes With Data Provider Change?

Oct 5, 2010

I have a radio button group within a data grid, whenever I attempt to change the selected radio button the web page crashes. Below is how I put together the radio button in the data grid.


<s:RadioButtonGroup id="cover"/>


View 2 Replies

Flex :: Same Data Provider For Chart And Data Grid?

Aug 18, 2011

I want to display the same data in a chart and a data grid. I want to use the same data provider for both of them to reduce the amount of SQL queries.How do I transform the database structure into the chart structure and into the table structure using ActionScript?*

Database structure in JSON format:

{key:, year:, value:},
{key:, year:, value:}

Data provider structure required by a chart:

{series1:, series2:, year:},
{series1:, series2:, year:}

Data provider structure required by data grid:

{key:, year2000:, year2001:, ...},
{key:, year2000:, year2001:, ...}

View 1 Replies

Flex :: Nested Objects For A Data Provider In Grid Not Displaying It

May 19, 2011

I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure[code]...

View 2 Replies

Flex :: Differentiate Between A Data Provider Update And A Itemrender Being Recycled When Using A Custom Itemrenderer In A DataGroup?

Oct 18, 2010

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned the same object they had before the update. This has made it almost impossible for me to distinguish between a data update and an itemrender being recycled. Also, the data never seems to get set to a value = null, so that seems to be out as well.

View 2 Replies

Flex :: Data Grid Computed Column?

Mar 23, 2011

How to make a computed column in Flex datagrid? example:

<mx:DataGrid dataProvider="{ConsoleDetails}" id="datagrid">
<mx:DataGridColumn headerText="Absent Hrs" dataField="absentHrs"/>


View 1 Replies

Flex :: Advanced Data Grid:column Visibility?

Dec 7, 2009

when we use an advanced data grid, only when we click on the parent element the children details get populated in the corresponding columns, right?..SO now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly once the columns are visible, how can i make them invisible again when the parent element is closed.

View 1 Replies

Flex :: Get Selected Column Value In Advanced Data Grid?

Jan 24, 2010

How to get value of selected column form Advanced datagrid whose visble propery is false .

View 1 Replies

ActionScript 3.0 :: Update Data Provider?

Nov 26, 2011

As i understand datagrid only is used as a form to present the loaded data in.So when we add new row to component or try to modify the value in cell and save it (xml file), we won't see those changes in saved file. So can some one explain to me or direct me to tutorial on how to update data in dataprovider, and how to save it to xml file.

View 2 Replies

Flex :: Determine Currently Sorted Header Column In Data Grid?

Jul 4, 2010

I want to know which header the user clicked on to give the currently sorted view. Is there an API in flex framework that I can use to achieve this? Hopefully I can get back a column index so I know how it is currently sorted.

View 1 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies

ActionScript 3.0 :: Dynamically Add Column To Data Grid?

May 12, 2011

How dynamically add column contains checkbox to datagrid?[code]...

View 1 Replies

Flex :: Get Data From Dynamic HTTPService Asynchronous To Populate An Advanced Data Grid

Dec 28, 2009

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; If necessary i'll post the .as file, but it is generated automatically by Flex Builder.

Here's the code of the client side Flex/Air application:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx=""


View 2 Replies

ActionScript 3.0 :: Update A Single Cell In A Flash Data Grid Component?

Mar 22, 2012

I've been working with the flash data grid component, and I want to update just one cell in the data grid without updating the entire dataset. I haven't found anyway to do this and the object inheritance makes it really difficult to track down properties of specific child elements. Here's a snippet i use to get data from a specific data cell:

var cellData:String = _currentPlaylistDataGrid.columns[0].itemToLabel(_currentPlaylistDataGrid.getItemAt(_c urrentSlideID));

What's the best way to do this? It's NOT on a click event or interactive event.

View 1 Replies

Flex :: Load Data In Advanced Data Grid On Scroll?

Jan 7, 2010

need to load 10 records from database in advanced data grid. After i scroll the advanced data grid. it has to load 11 to 20 records etc.

View 1 Replies

Flex :: Data Grid Not Displaying Data In Array Collection?

Oct 7, 2010

My data grid is displaying stale data, rather than the real time data available in it's data provider (array collection). I've tried refeshing the data in the collection, but that has no effect. Below is my code, does anyone see what could be the problem?


View 4 Replies

Flex :: Drag And Drop Column Data To Another Column?

Jan 29, 2011

In Flex, using AdvancedDataGrid, I'm trying to achieve a drag and drop of one row's column data to another row's column or the same row but different column. Is this even possible? I've been googling for hours and all I can find are drag and drop whole columns just to rearrange their view order.

View 1 Replies

Flex :: To Sort All Data In A Paginated Data Grid?

Jun 24, 2010

I have paginated data grid having more than 5 pages (100 records/page) now i want to sort them all on just clicking on fields header

View 1 Replies

Flex :: Filter The Data Provider For A Tree?

Mar 23, 2012

I have a requirement to filter the tree similar to that of flex builder-->preferences wizard tree.

My tree dataprovider is arraycollection of industries. Each industry has a list of sub industries and further, say upto depth 5.

So when we type in a string to filter, only the node having this string along with their parent hierarchy should be returned.

How can we implement this using flex?

View 1 Replies

Flex :: DataGridColumn With Array Of Objects As Data Provider

Mar 12, 2010

I have a datagrid that uses an array of objects as the data provider. The objects are essentially key/value pairs:

{ foo:"something"}
{ bar:"hello"}
{ caca:"lorem"}

The datagrid has 2 columns. The first column is the key and the second column is the value. Right now my grid looks like:

My dataFormatter function makes sure that depending on the column (i.e. the dataField value) the correct key or value gets printed out. This works fine for displaying. However, as soon as I try and edit the value field it essentially adds a new value into the object with a key of '1'. For example, if I edit the {caca:"lorem"} object it will then contain the value {caca:"lorem",1:"new value"}.

Is there any possible way I can set the DataGridColumn so that when I edit a value it will update the value associated with the key rather than inserting a new value? I've tried using a custom item editor but it still does the insert. It seems like I need to be able to update the 'dataField' with the actual key value but I'm not sure how to do that.

View 1 Replies

Flex :: Set HTML List As Mx:DataGrid Data Provider?

Mar 19, 2010

So I have Html like this [URL] (I want to create some Flash Track reader which will be opensource)

I need to list in my DataGrid Index of all viki pages in form like

|page name |page url|
| name | url |

View 1 Replies

Flex :: Hide The Last Children Of An XML Data Provider (not To Be Displayed In Mx:Tree)?

Apr 6, 2010

I have an hierachical XML data, and I want to display it as a tree. The XML data is something like this:

<service name="TestService" endpoint="">
<method name="sayHi">


View 1 Replies

Flash - Check To See If An Item Already Exists In Data Provider In Flex 4?

Mar 9, 2011

I have a dataProvider and there is an object in the dataProvider. I want to know if there is a way to see if you can check to see if part of the object exists. So lets say I have an object with usernames and passwords and I want to add a username to that dataProvider

View 1 Replies

Flex :: Get The Item Parent In A Tree When Using Nested Objects As Data Provider?

Jan 11, 2010

I have a Flex tree with an ArrayCollection as data provider. The collection holds an array of CategoryVO objects. Each object can have another array of CategoryVO objects inside it's "child" attribute. This way the tree displays the data correctly. Now I want to get the parent of a specific item, e.g. tree.selectedItem. Using XML as data provider the item parent is avaiable thorugh the parent() method. But I can't convert my data to XML. How can I get an item's parent? Perphaps using the tree's dataDescriptor?

View 2 Replies

Flex :: Flash Builder - Data Provider Not Working If XML Has Single Node Value Or Less

May 20, 2010

i get this error when i retrieve an XML that only has 1 node (no repeating nodes) and i try to store in an ArrayCollection. -When I have MORE than 1 "name" nodes...i do NOT get an error. My test show that XMLListCollection does NOT work either.

TypeError: Error #1034: Type Coercion failed: cannot convert "XXXXXX" to mx.collections.ArrayCollection.

this error occurs as the line of code:


Why can't ArrayCollection work with a single node? I'm using this ArrayCollection as a dataprovider for a Component -is there an alternative I can use that will take BOTH single and repeating nodes as well as work as a dataprovider?


private var myList:ArrayCollection= new ArrayCollection();
private function getList(e:Event):void{
var getStudyLoungesService:HTTPService = new HTTPService();


View 3 Replies

Flex :: Conditional Data Provider To Tree On The Basis Of List Selection?

Aug 1, 2011

This is my XML data in a file named nodesAndStuff.xml.

<?xml version="1.0" encoding="utf-8"?>
<node label="One" />[code].........

Now I have added my tree just below the list and I have saved counting from 10 to 19 in one.xml, 20 to 29 in two.xml and so on in different XML file. I have no clue how to connect the XML containing counting from 10 to 19 as the single node in tree at the selection of label one in list

View 1 Replies

ActionScript 3.0 :: Flex Delete A Tree Node Having A ArrayCollection As Data Provider

May 20, 2010

I have a Flex tree with an ArrayCollection as data provider. The ArrayCollection is composed by objects linked eachother by the "children" field (that is an Array containing other children objects)


View 1 Replies

Flash :: Flex Data Grid: Check Whether Item Renderer Displays Last Row In Grid

Feb 3, 2012

I'm currently working with the OLAPDataGrid component and got stuck at a relatively simple task: I want to style the last row of the grid differently from the rest, so my cell item renderer needs to know whether he's rendering the last row with content in the overall grid, including those rows currently not rendered because they are outside the visible grid space. AdvancedGridListData's rowIndex property only gets me the row index of the renderer relative to the range of visible grid rows, i.e. when I scroll down the grid, a data item with an index greater than 0 gets the rpw index = 0.

View 2 Replies

Flex :: Spark List : Show Subset Of Data Provider Based On Parameter

Aug 1, 2011

I have a situation where I have a List showing a queue of Upload Objects:


I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?

View 2 Replies

Copyrights 2005-15, All rights reserved