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


Similar Posts:


Flex DataGrid Shows Mixed Data?

Dec 14, 2011

i've working in flex for some years and it seems to me it's an awesome tool. Some days ago i've had an extrange behavior in my datagrid.

I have a php service which reads a database and sends this data to felx. The service and the info saved in the dataprovider in flex are working without problems, but when datagrid shows the loaded info, it shows many cells with wrong data. The data shown seem to be mixed with other cells. I have two registers: "The lightbulb is red" and "The dog is dangerous". But the datagrid shows e.g. "The lightbulb is Dangerous" or "The dog is red". When i see the dataprovider in a breakpoint all data is correct.

But it's even much strange when I click over a problematic cell, this automaticaly changes its content to correct values.

[Code]...

View 1 Replies

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

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 :: 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

Flex :: Export Grouped AdvancedDataGrid As CSV Text?

Sep 16, 2010

I'm trying to export an AdvancedDataGrid to CSV. This is easy enough for non-hierarchical data, but when using a HierarchicalCollectionView to show treed data it gets trickier.

how to access each of the cells just as they appear on screen when all of the nodes are expanded?

View 2 Replies

Flex :: Sort Grouped Columns In AdvancedDatagrid

Feb 1, 2011

I#m looking for a solution to sort all grouped colums in advancedDatagrid. It should be the same behavior like clicking in a columns head. i'm not looking for a solution to sort the fields IN a the grouping. There is working solution named compareFunction. But I'm not able to sort the two rows in my picture by column "Einnahmen". Sorry for the german word.

View 4 Replies

Flex :: Data Cannot Be Grouped Outside App And Return ArrayCollection

Sep 23, 2011

I have flat data in my app which I will need to group, summarize, and count as I normally would with a sql query. For this project though, it must be done in the flex app. I need to figure out how to group my data by day or month using a datatime field in my Arraycollection, then appropriately count or summarize data in other fields. I've used Groupingcollections before, but only when binding to hierarchical controls (like AdvancedDataGrid and Tree), but I need a resulting ArrayCollection with the grouped and summarized data. Basically, I'm trying to access my AC like a sql table (GROUP BY MONTH(datetime), COUNT, COUNT(DISTINCT(), etc.) and I'm unsure how to do it.

View 2 Replies

Flex :: AdvancedDatagrid Does Not Display Grouped Data?

Mar 10, 2012

I am trying to display grouped data in AdvancedDatagrid but the data does not show up. When I specify the dataprovider without the grouping collection I am able to see the data. Is there something wrong with this code?

<mx:AdvancedDataGrid id="dgAssetStatus" width="100%" height="85%" initialize="gc.refresh();">
<mx:dataProvider>

[code].....

View 1 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

Professional :: Flash Cs3 'Motion Tweening Will Not Occur On Layers With Ungrouped'

Jan 25, 2010

I am getting the error message: flash cs3 "Motion tweening will not occur on layers with ungrouped shapes or on layers with more than one group or symbol".I have only one symbol in the layer, a graphic.Does anyone know how I can correct the "problem"?

View 2 Replies

ActionScript 2.0 :: Dynamically Created Textboxes And Ungrouped/non-symbol Objects?

Aug 10, 2004

i have 2 layers, called typer layer and plain layer... on the plain layer i have drawn out a shape... like a circle for instance.... if plain layer is on top of typer layer everything works fine. if plain layer is below typer layer the typer does not type.... it doesnt even show up. at present the dynamically created text field into which the typing text will be put into has a depth equivalent to that of a guide inside the component (just a plain mc used for determining sizes etc nothing special) +1 i added 1 to its current depth because if i dont i only seem to get EITHER the circle OR the typer.... whereas if i add 1, i get EITHER the typer AND the circle OR just the circle..but this doesnt make sense does it? i mean if the typer layer is on top then it has a higher depth (ie. closer to zero as depths are currently in the negatives still ) so if i add 1 it shouldnt conflict with anything and i should get it typing and displaying the circle surely?and if it is below then the circle has a higher depth so in this respect if the typer wouldnt work when it is on the bottom i could understand this as the depths would be conflicting and as such the dynamically created text field couldnt be created in the first place because the depth level is already occupied....

View 12 Replies

ActionScript 2.0 :: Depth With Dynamically Created Textboxes And Ungrouped / Non-symbol Objects

Aug 10, 2004

im building a full as anything text-typing-component... easily modified and adapted etc...one problem however... i came across a depth issue in testing.... its a little peculiar so you will have to bear with me... i have 2 layers, called typer layer and plain layer... on the plain layer i have drawn out a shape... like a circle for instance.... if plain layer is on top of typer layer everything works fine. if plain layer is below typer layer the typer does not type.... it doesnt even show up....

[Code]....

View 12 Replies

Professional :: Possible Bug With Grouped Objects?

Jun 19, 2010

This is my problem:1. I group a drawing or I create an object (movie clip, graphic,button...)2. I double click the object/group on scene to edit.3. I go in to the group.4. I go back to the scene by double clicking somewhere empty.5. And object is gone. It's invisible. I can only bring it back by clicking on something NOT GROUPED on scene, or by clicking the red line on the timeline.Note: This problem seems to be not occuring when I go back to the scene via the blue arrow icon pointing left at the top or by clicking the scene name.

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







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