advanceddatagrid

Flex GroupingCollection: Loop through the children

I am using a GroupingCollection to bind my advanceddatagrid. I have used groupingcollection to group the data by date. Now I need to select the data in the datagrid through the code. Does anyone have any idea as to how to do this? I need to loop through the adg's dataprovider and select the item that matches the criteria for the selecti...

Flex Advanceddatagrid tree drag and drop such that they should maimtain hierarchy

Hi everyone, I have a situation where we have have to implement drag and drop in a AdvancedDataGrid to display the hierarchical data from a XML file. The trickiest part is that when I drag a leaf node (dragSource) and place it on the top of the branch node (dropTarget) the display should adjust the hierarchy so that the dragSource becom...

AdvancedDataGrid dataFields refresh

Hi All I have a problem with an AdvancedDataGrid; i want the fields Actual and Estimate to change with the timer function but it doesn't work. It works only by refreshing all the adg with the collapse of the tree structure. I want that if the tree is "exploded" only actual and estimate fields refresh. Sorry for my uncorrect english. Here...

drag and drop on all nodes of a tree structure simultaneously in a advanceddatagrid

I have an advanceddatagrid tree with a hierarchial XML as its dataprovider. If i drag and drop a branch from one node in a tree, the similar action is to be performed on all nodes of the tree simultaneously. Can anybody suggest how do we perform this. ...

Refresh GroupCollection of an AdvancedDatagrid - the sorted Arraycollection gets Randomized

I have an AdvancedDatagrid which gets populated by an ArrayCollection. I ordered the ArrayCollection by date (one of its properties), so it shows from past to future. The thing is, if I refresh the GroupingCollection (for immediate display in the datagrid) After the Sorting of the ArrayCollection, the ordering of the dates in the ArrayC...

Flex Advanced data grid:column visibility

HI I am new to Flex and was wondering, 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 onc...

Flex AdvancedDatagrid : toggling visibility of columns when parent is expanded and closed

HI I am new to Flex and was wondering, when we use an AdvancedDataGrid, 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 ...

Flex: Displaying xml in advanced data grid

I have an external xml file and i want to display it in an advanced data grid....as in if i click the parent element the children have to be displayed in the corresponding columns...i'm trying it with my dataprovider but its not working. How do i do that?... ...

Preserve multi-column sort in AdvancedDataGrid with dataProvider as GroupingCollection

I have three attributes in my XML object: last name, first name, and age. My sample XML looks like: <dataXML> <info last="Abc" first="Def" age="20"/> <info last="Abc" first="Hij" age="10"/> <info last="Xyz" first="Klm" age="25"/> <info last="Xyz" first="Opq" age="64"/> <info last="Xyz" first="Rst" age="08"/> </dataXML> I am using...

Advanced DataGrid in flex

Hi, I am using AdvancedDataGrid with its number of rows changing dynamically.I want to adjust the grid height according to the number of rows displayed.Can anyone help me out in this. Thanks in advance. ...

Drill down effect in advancedDataGrid using flex

Hi, I have a AdvancedDataGrid.On click of any entry in the first column,I want that particular row to expand with further details.On clicking the same entry again,the row should collapse back to its original form.Can anyone help me on this. TIA ...

Filtering in flex AdvancedDataGrid using input text

Hi, I have a advancedDatagrid with column headers having input text boxes for filtering.The column is filtered according to input text when I use characters as data inside that column.But when I use numbers in the column field,filtering does not happen.Can anyone tell me what went wrong. Any help would be appreciated. TIA ...

Flex hierarchical data - advanced data grid - unable to delete and change to leaf

Folks, When all the children are gone the folder icon does not change. If I walk the collection and then force the children = null, then the folder changes to a sheet (leaf) icon, as you would expect by looking at the HierachicalCollection class. However when I go to add a new leaf to the summary folder the folder reappears and the down...

Flex: AdvancedDataGrid Tree dropParent

Hi I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete. advancedDG.addEventListener(DragEvent.DRAG_COMPLETE, dRAG_COMPLETE_Handler); public function dRAG_COMPLETE_Handler(event: DragEvent):voi...

Flex : How to hide a row in AdvancedDataGrid ?

I have an AdvancedDataGrid with a ArrayCollection as its dataProvider. For instance i have a CheckBox that allows me to show or hide certain rows in the AdvancedDataGrid. Any idea how i could do that? ...

AdvancedDataGrid hell: data on grouping rows

I need a hierarchical grid that shows data in columns for the parent rows as well as the child rows. - a parent | 1234 | data | data | a child | 2222 | data | data | a child | 212 | data | data | I've tried to make ADG work, but by default it has all columns except the grouping column blank for parent rows. I think I could use ...

AdvancedDataGrid: two-row headers?

I want to have a summary row at the top of an AdvancedDataGrid that is not actually a summary of the values in the row: I want to stuff values in there "by hand". I have no problem writing an ItemRenderer that will figure out which header cell it's showing and lookup the value I want in there. I just don't know how to create the second ...

ArgumentError: Error #2004: One of the parameters is invalid.

I got the following stack trace while running a piece of code in my flex application: ArgumentError: Error #2004: One of the parameters is invalid. at ObjectOutput/writeObject() at mx.collections::ArrayList/writeExternal()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ArrayList.as:470] at mx.collections::ArrayC...

Flex AdvancedDataGrid AdvancedDataGridRendererProvider childrenField ArrayCollection - Question about behaviour

Hi, I have a main class ClassA that has a bunch of "normal" properties that are simple datatype like ints, strings, etc. It also has one property ("childItems") that is an ArrayCollection of ClassB. I am using an ArrayCollection of ClassA as the source for an hierarchical data provider for an AdvancedDataGrid. I set the childrenField t...

Flex advanced datagrid styling

Hi all, I'm using an advanced datagrid in a system I'm building. the design PSD from the designer includes a special background on rollover. So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row. is this even possible? can a row get the background from an im...