Flex :: DataGrid Columns Missing Header Text?

Feb 25, 2010

I created a component that is multiple datagrids side by side that share the same columns (each datagrid is the same as the one before but with different data).ProblemThe header text only shows up on the last datagrid. How can I get the text to show up on all the datagrid headers?Here is how I instantiate the component.

<common:PageDataGrid width="100%" height="100%"
numGroups="5" numRows="9" dataProvider="{createData(5, 9)}">
<common:columns>

[code]........

View 1 Replies


Similar Posts:


Flex :: Save State Of A DataGrid: Visible Columns, Columns Width And Order?

Jan 11, 2010

I want to save remotely (on a database) the state (visible columns, columns width and order) of a Flex3 DataGrid.For width and visibility I can simply save them by accessing each column attribute.. But for the order? Do I have to create the dataGrid dynamically?

View 2 Replies

Flex :: Adding Two Header Text In DataGrid

Aug 28, 2009

Can i add two header text in Datagrid? My Requirement is to have two Headercolumns in a Datagrid. Is it possible?

View 2 Replies

Flex :: Change Datagrid Header Text?

Oct 26, 2010

i have a datagrid. i want to change the header text of the first column to a dynamic text on click on a button.

View 1 Replies

Flex :: Vertically Aligning Datagrid Header Text?

Mar 24, 2010

I'm having some issues aligning the header text of a datagrid. I'm using an embed font for the header text, and when applying the css, the header text behaves as if I'd set the text vertical align to top. I'm trying to vertically center the text, but haven't found a way to make it work.

View 1 Replies

Flex :: Unable To Rotate Header Text In Datagrid?

Nov 16, 2011

I'm having trouble in rotating the header text in my datagrid. I don't know understand the reason why its failing.

Datagrid column AS3 code:

dgc=new DataGridColumn();
dgc.dataField=columnName.gene;
dgc.labelFunction=gridLabelFunction

[Code].....

View 1 Replies

Flex :: Datagrid Different Fonts For Column Header And The Text In The Corresponding Cell?

Aug 4, 2009

For a flex datagrid : How do I have different fonts for a column header and the text in the corresponding cells?

View 1 Replies

Actionscript 3 :: Spark Datagrid - Text Goes Over Other Columns?

Nov 18, 2011

I have a spark Datagrid with lot of columns. The problem is that if i have a long text in a cell, then the text goes over other columns. I want the text to stay in it cell, if it longer than the columns width, then the text to be truncated somehow.

View 1 Replies

ActionScript 3.0 :: Wrap Header Text In Datagrid?

Feb 7, 2012

I'm using FB4.6 and constructing a variable sized DataGrid in actionscript. I need the text to wrap in the header (actually every cell) of a datagrid. I can find examples of doing it in mxml but not programatically.

View 0 Replies

Flex :: Add Total Columns In DataGrid?

Jun 9, 2011

I have one Datagrid in Flex. In datagrid there are 4 columns like mark1,mark2,mark3,Total.When i enter mark1,mark2,mark3 that time i want to update total.

View 2 Replies

ActionScript 3.0 :: DataGrid - How To Change Header Text Align

Dec 5, 2010

How can I use cell render class to modify datagrid's header ! but head is not a cell ! I just want to change header text align!

View 4 Replies

Flex :: Swapping Columns And Rows Of DataGrid Possible?

Jul 22, 2009

I have a 1 row, many column flex datagrid. I would like to turn the dataGrid on its side, so that the column headers become a single column running down and v.v. Is there a way to do that in the DataGrid? Or am I stuck manipulating the data presented to the grid?

I have an object like:
x=y
b=u
o=p
u=e
w=p

And I'd like a control that is visually similar to that. Currently the datagrid displays the object as:
x b o u w
y u p e p
Which is too horizontal for my case.

View 2 Replies

Flex :: Sending Entire Columns Of Datagrid To PHP?

Nov 4, 2009

My Main.MXML

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/" width="100%" height="100%">
<mx:AdvancedDataGrid sortExpertMode="true" id="baselineGrid" dataProvider="

[Code].....

I need to send the entire datagrid columns to PHP. How to send all the values of the column 1 and column 2.

Note: COlumn 2 is an itemRenderer which has a combo box.

View 1 Replies

Flex :: Dynamically Creating Datagrid And Its Columns?

May 1, 2011

1) Using datefield as item renderer in flex.I am dynamically creating datagrid and its columns. like

dataGridColumn=new DataGridColumn();
dataGridColumn.dataField="invoiceDTO.invoiceDate";// I read this value from XML
dataGridColumn.editorDataField="selectedDate";
dataGridColumn.itemRenderer=new ClassFactory(DateFieldRenderer);
dataGridColumn.rendererIsEditor=true;

But when UI is generated i get the error invoiceDTO.invoiceDate not found on the TestDTO

//Test DTO

public class TestDTO
{
public var invoiceDTO:InvoiceDTO;
}

My objective is my dataField should be binded with datafield inside the datagrid.How can i do it in actionscript

2) I need to present combobox as item renderer. (same like case 1). But how can i assign dataprovider in the combobox which is present inside the datagrid.

View 1 Replies

Flash :: Dynamically Add Columns To Datagrid In Flex

Sep 22, 2011

I am trying to make a datagrid, that will dynamically add columns to it based on some condition. Now, I am able to add the columns, but I want the newly added column to have button using itemRenderer. I am unable to achieve this though. Getting this error on line 1

[Code]...

View 1 Replies

Actionscript :: Sorting Columns In A Flex Datagrid

Oct 14, 2011

The datagrid gets its data from a back end database which has records like

[Code]....

I get errors like 1061: Call to a possibly undefined method refresh through a reference with static type mx.controls:DataGrid. for myRecords.refresh(); and Access of possibly undefined property sort through a reference with static type mx.controls:DataGrid. for myRecords.sort

View 1 Replies

ActionScript 2.0 :: Import Multiple Text Files Into Individual Datagrid Columns?

Oct 30, 2009

I have 5 text files that contain a list of 50 items in each file.

I want to bring that information into a datagrid; 1 column per text file. I'd also like to extend the code to add more columns when new files are created.

I was able to bring in one column, but maybe an approach with xml, an xml connector and dataset would be better.

Here is the code so far:

Code:
var PATH:String = "10-12-09.txt";
var extIndex:Number = PATH.lastIndexOf( '.' );
var extless:String = PATH.substr( 0, extIndex );

[Code].....

View 0 Replies

Flex :: Move/reorder Columns In A Spark DataGrid?

Apr 6, 2012

I am unable to find if the spark DataGrid supports moving / reordering the columns. If not what could be the best solution? Maybe using the mx version?

I want the user to be able to drag the columns and arrange them.

View 2 Replies

Flex :: One DataGrid Item Renderer For Multiple Columns?

Apr 30, 2010

I'm trying to create a Flex DataGrid where the firstname and lastname are shown under each other, but in the DataGridColumn

Ideally I would want to do something like

<mx:columns>
<mx:DataGridColumn headerText="Column 2" dataField="time"/>
<mx:DataGridColumn headerText="Column 2" dataField="firstname,lastname" itemRenderer="renderers.FirstNameLastName"/>

so that both values get passed to the itemrenderer, is this possible?

View 1 Replies

Actionscript - Sorting Advance Datagrid Columns In Flex?

May 3, 2010

For example : Having four columns in advance datagrid like company,contact_person,product and date. In this, first i want to sort by product followed by company and followed by date.

View 1 Replies

Flex :: View - Evenly Distribute Columns In A DataGrid?

Jul 14, 2010

I have 16 columns in a DataGrid in my Flex app. The first 15 look fine, with the column, simply containing the text, but the last one has a lot of extra space. Essentially, the columns are just big enough to fit the first 15 and all that extra space is tacked onto the 16th column.

How can I evenly distribute the space over each column?

<mx:DataGrid x="127" y="9" id="view"
dataProvider = "{currentBuffer}" width="497" height="480">
<mx:columns>

[Code].....

View 2 Replies

Flex :: Populate 2 Columns In Datagrid From Combobox ItemRenderer

Oct 26, 2010

I have a data grid with an Combobox itemRenderer in it. What I have is a grid with a person id and person name (more stuff in grid but I am struggling with this). In the person name column I have an combobox with all the people on then system's names and id's. What I want to do is when I select a person in the combobox I want the combobox to populate the person name fields (which it does) but I also want to pull out the person id from the combobox and populate the person id column in the data grid as well.

View 1 Replies

Flex :: Programmatically Update Datagrid Columns HeaderText?

Feb 11, 2011

I have a Datagrid that is being populated by an ArrayCollection (rows) of Arrays (columns).I need to update the headerText of each column based on a List that will correspond with the total number of items within each array in the arraycollection. What is the best way of doing this? I know that I can set a listener in the List and update the headerText using (matrixDatagrid.columns[i] as DataGridColumn).headerText but I am looking for a cleaner solution.

View 1 Replies

Java :: Rendering A Datagrid With Dynamic Columns In Flex

Jul 17, 2011

I have a datagrid which displays details for a product. For a particular product i need to display its Id current status(Available/ Not) and which category it belongs to. The category part is a bit different from what it seems to be like. Product A can belong to Category A, B and C while product B belongs A ,c and D and so on. Structure of this table would be something like The category columns are retrieved from database and passed as parameter to construct the columns dynamically in Datagrid. I have defined the following Datastructure on UI to handle this.

Product{
var productId:String;
var productName:String;
var status:String;
var categoryList:ArrayCollection;
}

I am not sure if this will be able to solve my problem. I think I will need to have a Map containing category Names and if it is applicable for that product.

View 1 Replies

Flash :: Set Width In Percentages Of Columns Of MX Datagrid In Flex?

Oct 25, 2011

I want to know how i set width in percentages of columns of MX datagrid in flex ?

View 2 Replies

Flex :: Put Image In Header Using HeaderRenderer For Datagrid?

Mar 18, 2011

how to create an headerRenderer and embed and image in the first header (column) for my datagrid.

View 1 Replies

Flex :: Set A Tooltip Just On Header Of A Spark Datagrid?

Sep 21, 2011

Is it possible to set a tooltip just on the header of a spark datagrid. I do not want any tooltips on the data - just the header. I have played with mouse over and this sort of looks like it might work. This seems a bit of a hack to me though.

View 1 Replies

Flex :: Keep The Order Of FLEX Datagrid Columns As Its Dataprovider?

Sep 8, 2009

The flex DataGrid colums are arranged alphabetically by default. I need to order the DataGrid colums as per the order in its dataProvider. The dataprovider is the result of the HTTPService . And the number of columns is not known to us . The number of columns depends on the HTTPService result.

View 1 Replies

Flex :: Datagrid Columns Drag And Show Error Message?

Oct 8, 2010

I have a data grid where users can drag columns and reposition them. But there is a strange requirement that some columns should not be draged to the left of some other column. eg, assume the columns are: name, price , start date, end date, The end date should not be dragged and placed before the start date. i.e. The user can have start date, price , name , end date. name, start date, price , end date. But at no point can end date appear before start date. Is there a way to do this flex? Is there a way to know where the user is trying to drop the column and show error message ?

View 2 Replies

Flex :: Spark Datagrid Memory Usage With Dynamic Columns?

Jun 4, 2011

I have a question about the Spark DataGrid and how it works in terms of garbage collection. What I'm finding is that if I dynamically add and remove columns from the DataGrid at runtime, the GridColumns and ItemRenderers never get freed from memory.

For instance, if I have a list with 10 items and I create 10 columns, there will be 100 ItemRenderers and 10 GridColumns. If I remove all of the columns, they are still there.

[Code]...

View 2 Replies







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