advanceddatagrid

What's the right way to calculate derived data in a Flex AdvancedDataGrid using summaries?

Here's the gist of the problem: I have a set of rows of data with (say) field1 to field4 in them. I'm using a GroupingCollection to group on field1 and field2. So, I have something like this: f1.1 f2.1 f3.1 f4.1 f3.2 f4.2 f2.2 f3.3 f4.3 f3.4 f4.4 f3.5 f4.5 f1.2 f2.1 f3.6 f4.6 f2.2 f...

How can I access the in-progress SummaryRow in the summaryFunction of a GroupingCollection?

In Flex 3, I'm using a GroupingCollection to create a hierarchical display of data in my app. One of the summarizations I'm doing requires access to another value in the summary row; I'm calculating the average of a column in one place that is necessary for the calculation of a related value in a second summary column. This related value...

Resizing columns in adobe flex AdvancedDataGrid

Hi, I'm using an AdvancedDataGrid without the header row (AdvancedDataGrid.showHeaders="false"), my AdvancedDataGrid has 2 columns, where the first one will show a hierarchical data (tree). The tree may be very long and very deep or may contain a long string in the node label so the user will not be able to see the whole vale of the tree...

Problem in displaying numbers in Flex AdvancedDataGrid

Hi, I am able to display any data (numbers) in Flex AdvancedDataGrid except data with lot of digits after decimal places (0.000000000029103830456733704) or exponential numbers (293E-17). Grid is displaying -17 instead of 293E-17. Is it happening because of any limit to displaying data range in grid? If yes, what is the limit? ...

How can I programmatically get and set column sorting parameters in AdvancedDataGrid?

Hi all. How can I programmatically get and set column sorting parameters in AdvancedDataGrid?I'm especially interested in value that indicates that user have sorted data in AdvancedDataGridColumn by clicking on its header and value that indicates sorting order. I haven't found appropriate properties in AdvancedDataGridColumn documentatio...

How to determine currently sorted header column in data grid?

Hi I have a datagrid. 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. Thanks, Mike ...

set text cursor in editable datagrid with adobe flex 3

Hi, when clicking on a row in this editable datagrid, the whole text is selected. How can I set the cursor to the first character. I've tried itemEditBegin(ning) and expected to be able to use for the ItemEditor a method like setSelection()... Please let me know, if you need anykind of additional information! Thanks, Werner <mx:Advan...

Multiple update of values in a row in a Flex DataGrid or AdvancedDatagrid

How can i update multiple cells of the same row changing the value of a single cell of the same row ?? Example: id, height, weight, fat percentage, corporal mass. When i change one of the values in a row (except id of course) the corporal mass cell value must change using a formula like: (height/weight2)*fat percentage*100. Is this pos...

Flex AdvancedDataGrid sort

I have an AdvancedDataGrid that is being populated by customer data. Each customer has 3 monthly products(1, 3, 6), and also a passed field specifying whether the customer qualifies for any of the monthly products. Now the grid is sorting the customer data alphabetically, which is a good thing, but it isnt sorting the monthly products,...

Flex AdvancedDataGrid - Remove sort arrow

Is it possible to completely remove the sort arrows on an AdvancedDataGrid header? I know that you can kinda do this by using <mx:AdvancedDataGrid sortExpertMode="true"/> and I even tried using <mx:AdvancedDataGrid sortExpertMode="true"> <mx:columns> <mx:AdvancedDataGridColumn sortable="false" /> This doesnt work be...

How to access the values in a datagrid present in one application, using the cut, copy, paste buttons present in another application.

One application is loaded from the other using SWFLoader. ...

how to access flex component id's generically?

I have some generic functions like copy, paste,etc in an AS file. I want to use them for editing data present in different mxml applications embedded in one application. If I pass the child's component id as a parameter of a function in one of the events, I get the value as either null or the parent app name. But I want the id of the chi...

AdvancedDataGrid horizontal/vertical scroll bar problems. (Flex)

So, I have an AdvancedDataGrid that needs to live inside a Canvas. My problem is that when you do something like this you get two sets of scroll bars. Also, the horizontal scroll bar for the AdvancedDataGrid changes size as you scroll right to left and will not let you scroll ALL the way to the right, which seems odd. I've turned hori...

AdvancedDataGrid - disable the header rollover and selection color

Hi, i used before a datagrid and fixed that issue by overriding the methods but now i have to move to advanced data grid and didn't find the answer yet, could any one help, thanks ...

preventDefault messes with tab ordering - AdvancedDataGrid itemeditor

Checkout following sample code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.CheckBox; import mx.events.CollectionEventKind; import mx.events.CollectionEvent; import mx.events.DataGri...

AdvanceDataGrid nodes collapse on refresh

I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I d...

Flex AdvancedDataGrid tree node dosn't display the whole string value when the number of lines in the string is higher than the row height!

Hi, I'm using AdvancedDataGrid to display data in a tree, variableRowHeight = true. The problem is that if the value of the node is too high from the row height (according to the resolution) then only part of the node value is displayed and the scroll of the tree jumps directly to the next line without being able to scroll/view the who...

Flex AdvancedDataGrid - remove default data sorting/shuffling

I have this AdvancedDataGrid you can view at http://rtistique.com/foo/ to view the source, right-click -> view source It displays a simple ArrayCollection private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:"Southwest", Territory:"A"}, {Region:"Southwest", Territory:"B"}, {Regio...

Sorting in AdvancedDatagrid in Flex 3

Hi, I am using in-built sort functionality provided by AdvancedDatagrid. I have multiple columns and suppose I have 10 rows. All 10 rows have the same data in one column. If I sort on that column, then it sorts and the data in other columns which is different is also being sorted (reshuffled). My requirement is if I am sorting on a ...

Sorting in AdvancedDatagrid in Flex 3

I am using AdvancedDatagrid in Flex 3. One column of AdvancedDatagrid contains numbers and alphabets. When I sort this column, numbers come before alphabets (Default behavior of internal sorting of AdvancedDatagrid). But I want alphabets to come before number when I sort. I know I will have to write the custom sort function. But can any...