advanceddatagrid

Can you return a String from a summaryObjectFunction

In a Flex AdvancedDatGrid, we're doing a lot of grouping. Most of the columns are the same for the parents and for the children, so I'd like to show the first value of the group as the summary rather than the MAX, MIN or AVG This code works on numerical but not textual values (without the commented line you get NaN's): private functi...

How do I sort in a Flex AdvancedDataGrid - callback isn't being called

I have an AdvancedDataGrid that uses customer grouping of data. Not all of the groups will be at the same level in the hierarchy, and groups can contain both groups and members. We have a sort callback, but it's not being called except for groups at the leaf-most levels. See code below for an example -- expand all of the groups, then cli...

Weird ItemRenderer behavior

I have a really odd issue with an ItemRenderer. I have a main.mxml container with a ViewStack. When a user logs in, the initial view contains an AdvancedDataGrid--containing some data and the ItemRenderer below--which simply displays a Delete button. When the user logs in, this AdvancedDataGrid is automatically refreshed from the databas...

Flex AdvancedDataGrid: MXML ItemRenderers are not defaulting to the default style

I know AdvancedDataGrid has a styleFunction callback, but I don't want to change the style; I want the itemRenderer to get the global style that everything else (including normal columns) uses. My in-line item renderers use the default style, but not the ones I created as separate MXML classes (they extend Canvas). Any handle I need to...

After grouping a flat data collection, what is the structure of a itemRenderer's data ?

So I want to have the tree behavior in a grid, and use item renderers in the top-level (aka summary) rows. Once I've applied grouping, the data object is much changed. Here is the code to add grouping to an ADG: var tripCollection : TripSearchMatchCollection = TripSearchMatchCollection(value); var theGroupingCollection : GroupingColl...

Flex AdvancedDataGridItemRenderer backgroundColor/textColor not rendering

I have the following class that extends AdvancedDataGridItemRenderer: package { import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer; public class TestADGIR extends AdvancedDataGridItemRenderer { public function TestADGIR() { super(); backgro...

Flex AdvancedDataGrid with Grouping, how do I get objects to appear under first GroupingField if the second GroupingField is null?

I am using an AdvancedDataGrid with two GroupingFields. The dataProvider has a list of objects with these two field values, but occasionally the second field value can be null. When it loads, the AdvancedDataGrid UI has a root folder (first GroupingField) and some additional subfolders (second GroupingField). This is all good. However, t...

Why is AdvancedDataGrid not updating when the HierarchicalData dataProvider is updated?

I have an AdvancedDataGrid (ADG) with a HierarchicalData dataProvider: <mx:AdvancedDataGrid xmlns:mx="http://www.adobe.com/2006/mxml" dataProvider="{__model.myHierarchicalData}" displayItemsExpanded="true" sortExpertMode="true" dropEnabled="true" sortableColumns="false" draggableColumns="false" resizableColumns="true"...

How can I refresh data in my AdvancedDataGrid control?

I am using the advanced datagrid control. In that I am showing the data in hierarchical format in that I have one parent with two children. In the parent I have a checkbox and when I select the checkbox, I have to remove the existing data of children and replace with new ones. ...

How do I create a Hierarchical Cursor from the dataProvider of an AdvancedDataGrid?

In a previous application that I had written, I had a Class that extended AdvancedDataGrid (ADG). It contained the following code: package { public class CustomADG extends AdvancedDataGrid { .... // This function serves as the result handler for a webservice call that retrieves XML data. private function...

How can make column widths bindable in two Flex AdvancedDataGrids?

Bear with me here. I have a strange setup to accomplish what I need. I basically have an AdvancedDataGrid that displays data returned by a WebService. The data is in XML format: <children label="parent 1" value="3100"> <children label="child 1" value="1100"> <children label="grandchild 1" value="200"> </children> ...

Flex: Expand AdvancedDataGrid Tree Column programatically

Does anyone know how to programmatically expand the nodes of an AdvancedDataGrid tree column in Flex? If I was using a tree I would use something like this: dataGrid.expandItem(treeNodeObject, true); But I don't seem to have access to this property in the AdvancedDataGrid. Thanks for your help! ...

AdvancedDataGrids not synching properly when columns are hidden/shown

Hi, I have a advanceddatagrid(ADG1), which is being populated from the query to Database. I have another advanceddatagrid(ADG2), bound to this datagrid. ADG2 basically contains only 1 row, which has exactly same number of columns as the ADG1. The row has details like, count of items in the perticular columns, sum of the records of the p...

Formatting AdvancedDataGrid Cells

Hi, I have a quick question about rendering the advanceddatagrid cells. I need to programatically color the cell of the datagrid based on the conditions. Lets say, the stock quotes. If there is an increase from the previous day, I need to have the cell colored in GREEN and in RED, when there is a decrease. Now, the important part here...

AdvancedDataGrid SummryRow

One update: I tried using the SummaryRow on the datagrid for its basic functionalities and it is working. Now, I need to embed the text in the summary fields. E.g. If one of my summaryfields returns me the count then it should be able to display 'TOTAL (count)' Is it possible with the summaryrow? Also, I need to have the data to be fo...

ADG SummaryRow Sorting Problem

This is my 2nd post on SummaryRows. I am done with building the summaryrow and its working fine. But, one problem I am encountering is having the row moving in between the AdvancedDataGrid when I sort by some columns. If it stays on the TOP or BOTTOM of the grid, it is understandable. But it sometimes goes in between the rows. I am findi...

AdvancedDataGrid LockedRowCount not working

I am trying to lock the 1st row in my ADG. This 1st row is the SummaryRow. When I set the lockedRowCount property to 1, it still does not freeze the 1st row. I have tried with different numbers, but it is still not working. In fact, when I try to trace the value for lockedRowCount, it traces it as 0. Can anyone provide suggestion on how...

How to have two values for a column in grid

Hi, We are using AspXGridView devXgrid for our web application. I have to assign two values (id,value) for a column in the grid. How can I do this? Thanks, P.Gopalakrishnan. ...

Freeze columns in Flex AdvancedDataGrid

I know you can use the lockedColumnCount property of the AdvancedDataGrid in flex to lock any number of the first columns in a grid, but how could I lock the first and last columns in the grid? ...

Flex/actionscript: Using dataDescriptor on an AdvancedDataGrid

I have a hierarchical data set that i would like to display in an advancedDataGrid. My data is a set of composed value objects that do not use the 'children' attribute. On a Tree control you can create a custom dataDescriptor to define which elements contain the children of the node. Can this be done on the datagrid as well? ...