Flex :: Group Items In DataGrid?

Aug 12, 2009

I have a DataGrid with info like this:

Associate AmountTimeCustomer
John Doe 29amSam Smith
John Doe 210amBerry Cooper
Bill Ace 19amSandy James

Repeating the name and amount gets redundant so I would like it to look something like this:

Associate Amount
John Doe 2
Bill Ace 1

Then when you select one, it expands to show the times and customers for the selected associate. I hope this makes sense...I am currently just using a DataGrid but I can use an AdvancedDataGrid if thats needed...I am pretty sure something like this can be done, I just don't know how.My data is in xml and looks like this:

<stat associate="John Doe" date="08/12/09" amount="2" time="9 am" customer="Sam Smith"/>
<stat associate="John Doe" date="08/12/09" amount="2" time="10 am" customer="Berry Cooper"/>
<stat associate="Bill Ace" date="08/12/09" amount="1" time="9 am" customer="Sandy James"/>

View 1 Replies


Similar Posts:


Xml :: Getting A Flex RTE To Group LI Items Properly (wrapped In UL Tag)?

Feb 5, 2010

I'm trying to use XML to convert the code that a Flex RTE creates to valid HTML. No problems on other HTML elements, but difficulty with unordered lists. I created a solution for moving consecutive LIs into a UL node. After trial and error, I came up with the following solution. My question is - surely there's a better way to do this?

for each (listXML:XML in xml..li) {
if (listXML.children().length() == 0) {
// list item is empty - make it an empty paragraph instead

[code].....

View 1 Replies

Flex :: Adobe Flex - Doing Group By At Client End (DataGrid To Pie Chart)?

Dec 23, 2010

I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)

Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12

and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).

I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?

View 2 Replies

Flex :: Group Flat Data In Advanced Datagrid Won't Work

May 17, 2010

i've got an ArrayCollection which is properly displayed in this Advanced Datagrid:

[Code]...

View 2 Replies

Flex :: Get Number Of Items In Datagrid

Jul 26, 2010

I am using Datagrid control in flex.I need to get the count of number of items in that Datagrid. What is the method to get that?

View 1 Replies

Flex :: Datagrid Select All Items?

Aug 9, 2010

What would be the best way to select all items in a datagrid.

I was thinking of doing a for loop and then select each item, but is there a better way for achieving this?

View 3 Replies

Flex :: Sort Items In The Datagrid Alphabetically By Name?

Nov 13, 2010

I want to sort items in the datagrid alphabetically by name.The order should be:

1) The name should first check for upeercase of the name if it is not then it should look for lowercase for the same letter alphabetically.

For example : if i have array of items say{Apple,boy,ant,Bat) then after sorting the list shld be

Apple
ant
Bat
boy

View 2 Replies

Flex :: Select Multiple Items In A DataGrid?

Feb 28, 2011

how to multiple select the datagrid? i can't figure it out.

View 1 Replies

Flex :: EventListener To Watch For Number Of Items In DataGrid?

Oct 1, 2009

Indeed the best for fast building of Web based Apps...

I'm trying to do something with eventListeners, but i still do a lot of messy code, so wanted help of those who already know flex.

I'm have a DataGrid, and its itens are added by another component, no problems with that.

I have buttons to Add, Remove and Edit the items inside the DataGrid. No problem with that too.

But i want those button to be enabled when the DataGrid as at least one item, and when it doesn't as any, all three buttons should be disabled.

EDIT: Forgot to say: I think eventListeners are the best way.

View 1 Replies

Xml :: Flex - Display A List Of Items In A Datagrid From A XMLList?

Oct 19, 2009

I am trying to display a list of items in a datagrid from a XMLList.

<Series no="1">
<file>
<filenum>1</epnum>
<prodnum>4V01</prodnum>

[code]...

My current code allows me to retrieve every Series into an XMLList and then i have a nesteddatagrid class that allows me to do things like.

<classes:NestedDataGrid width="100%" height="100%" id="gridFiles" dataProvider="{filesList}" >
<classes:columns>
<mx:DataGridColumn headerText="Season" dataField="@no" width="60"/>

[code]...

However this displays the datagrid with two rows, the first row has 1 in the Series column and then the two files crammed into the second cell in the same row. The second row is the same but has the number 2 in the Series column and the two series #2 files crammed into the cell next to it.If i do not use the nested data class i can pull the files using Series.file instead and all 4 of the files list correctly, however i do not get the Series number for each...

View 1 Replies

Flex :: Have Ungrouped And Grouped Items Mixed In Same Datagrid?

Apr 7, 2011

Is there a way to have ungrouped and grouped items mixed in the same datagrid?

For example, think of a grid that lists the root items on a C: drive.

Obviously, we would want the Directory Structure to be group and expandable. But the files on the root drive would also be shown on the list, however they would not be grouped.

View 2 Replies

Flex :: Popup Editor For Datagrid Items - Hangs The Browser

Sep 9, 2010

a datagrid which renders some items. clicking on an item would bring up a popup editor (as the item has lots of properties and may not be edited right in the datagrid).

the popup contains just a form and a [Bindable] reference to the item it edits (which is passed from itemClick handler of the datagrid). form's default values are taken by binding to corresponding item properties with {} notion, while form values are bound back to the item using mx:Binding tags.

and now the problem. when the popup is brought up for the first time, everything is fine. however, when after being closed the popup is brought up again by clicking on the same item, the browser hangs (afaik because of change watchers being endlessly fired resulting in stackoverflow or something similar).

we have same behaviour in Safari, IE and Chrome, so i guess it's not to do with something browser-related. removing either [Bindable] from the item reference in the popup or mx:Binding tags from editors suppresses the problem, but of course the editing no longer works.

here's the code of the popup:

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="Details"
showCloseButton="true" close="PopUpManager.removePopUp(this);" creationComplete="PopUpManager.centerPopUp(this)">
<mx:Script>

[Code]....

View 2 Replies

Flex :: Get The DataGrid To Re-render The Visible Items So That The LabelFunction Will Be Run Again To Get The New Data?

Mar 30, 2011

I have a DataGrid where some number of the columns can have a labelFunction. The nature of the labelFunction result can change problematically(eg apply formatting,bypass formatting. How do I get the DataGrid to re-render the visible items so that the labelFunction will be run again to get the new data.I've tried the invalidateDisplayList, validateNow, and tried dispatching ResizeEvents on the DataGrid.

View 1 Replies

Flex :: Display Number Of Items In A Grouping For Advanced Datagrid

Oct 19, 2011

I have my ADG displaying data like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Drag A Group Of Items And Get The Object Information?

Nov 3, 2009

I have a container which is a sprite. In that container I have added several movie clips. Now I am trying to drag that container over the other containers and have them move out of the way for the one being dragged.

so here is how I create the containers:

ActionScript Code:
for ( var x:int; x < _GroupsArray.length; x++) {
//create a container
var tmpGroup:DAILYGroup = _GroupsArray[x];

[Code]....

1. Is there a way that I can get my group object from the target?

2. The container seems to come apart when I drag and drop certain areas. Is there a way to keep the different objects together?

View 2 Replies

ActionScript 2.0 :: Tweens Out A Group Of Menu Items When Rollover

Feb 23, 2008

I've got an area that, when you rollOver, tweens out a group of menu items. These menu items change colour when you mouseover. When you rollOut of the whole area, the menu tweens back. It seemed like the most simple thing to do, but it keeps giving me trouble! What I've got at the moment is an invisible symbol over the top of the rollOver area, including where the menu sits. The menu items are individual buttons for the mouseOver effect. I've got a full page invisible area (my standard technique - I call it "blockout") sitting right at the back, so when you rollover that (and off of the invisible area) the menu tweens off.

I can't just use rollOut invisible area because hovering over the buttons triggers that response and causes the menu to tween off. I've had to do plenty of similar things for work (apparently 'basic flash' to them meant I can do complex AS-based apps), and just tend to use my blockout method, but now that it's my own site, I'd like to do it right! If anyone knows a better way to do it,

View 5 Replies

ActionScript 3.0 :: Way To Group Context Menu Items Into A Tree Like Structure?

Sep 13, 2010

Is there a way to group context menu items into a tree like structure?Like the Quality in built in menu.You can test it on any flash that has the built in items enabled.Right Click -> Quality -> Low.Can you do the same with custom items?For example:Right Click -> Custom Options -> Option 1

View 5 Replies

ActionScript 3.0 :: Load SPECIFIC XML Items To Datagrid?

Jun 21, 2010

how to Load SPECIFIC XML items to datagrid?

View 1 Replies

ActionScript 2.0 :: Access DataGrid Column Items ?

Nov 3, 2006

I was wondering if anyone knew how to access column items...

ie if i made a column named "Info" and wanted to get the 5th item how would i go by doing so.. i though it was just an array something like this my_dg[Info][i] were i is the index counter.. but that wasn't it.. i can get it to display the column name but thats about[code]...

View 1 Replies

Actionscript 3 :: Selecting Flex Chart Items And Displaying Sum Of Items Selected

Aug 26, 2009

I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:

1) I would like the box that the user drags over the graph to remain there until the user drags a new one.

2) In the top right corner of the box I want to display the sum of the items selected by that box.

View 1 Replies

Flex :: Make List Items As Tool Tips For Combo Box Items?

Dec 1, 2009

How to make list items as tool tips for combo box items?

View 2 Replies

Flex :: Force The List To Load All The Items, Not Only The Visible Items?

Aug 15, 2010

I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.

I created the component using a s:List element.

In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.

Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.

is there a way to make the list preload all the elements so i won't have this kind of problem ?

View 1 Replies

ActionScript 3.0 :: Force DataGrid Sort (Alphabetize After Adding Items)

Dec 8, 2008

I have a DataGrid set up and have the XML data nice and cozy inside of it, but I have a bit of a snag. The data I'm importing comes from a few separate files but the DataGrid ends up displaying all of them, so the rows are a bit of a jumble initially. Is there a way to tell the DataGrid, AFTER it has all of it's data, to sort itself out alphabetically based on it's first column?

View 3 Replies

Flex :: Show Data At Group Level In Flex Advanced Grid?

Aug 6, 2009

I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some data in it.

Example: Grid displaying list of towns grouped by state. At the group level ( for each state) I want to show the total number of towns in each state. Here how can i show the total number in the town column.

View 1 Replies

Flex :: Toggle A Mask To A Group In Flex (works For BorderContainer)?

Oct 6, 2011

Here's my test application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]....

I would expect the mask to be applied when the checkbox is selected, and removed when it issin't. But it doesn't seem to work.However, when you change to , it works like a charm. Can anyone explain to me why?

Note: In my actual application, i'm applying this in a skin to a component that is extending SkinnableComponent which can't use BorderContainer so a solution to this would be great.

View 1 Replies

Flex :: Adobe Flash Builder DataGrid DataProvider CollectionEvent.COLLECTION_CHANGE Handler's Access To DataGrid??

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

Flex :: Datagrid Selects The Wrong Custom Cell In Datagrid

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

Flash :: Turn Flex MXML DataGrid Into Something Like Horizontal DataGrid?

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

Flex :: Changing Dataprovider Of A Datagrid On Change Event Of Another Datagrid?

Oct 15, 2011

I have two datagrids:

- Division
- Members

Both have single columns. Selecting one item from Divsions datagrid should display members of that Division in the Members datagrid. But following code has some problem and Members of a particular division do not show up when respective Divsion is clicked.

Following are some snippets of the related code. Hope someone can spot an error in it.

[Code]..

View 2 Replies

Radiobutton Group Value - Get The SelectedData From The Group?

Aug 14, 2009

I've got some MC's in my library that have radiobuttons in them -- all of this created at design time -- and pull them onto the stage dynamically. My question is how do I get the selectedData from the group? The setup is like this: In a MC called pageOne, I have a group of buttons with a group name of Q1, Q2, etc. I pull the MC onto the stage like this:

[Code]...

Do I need instance names on each of the buttons and add listeners to all of them?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved