Flex :: How To Add New Column Based On Existing One

Apr 6, 2011

I have a AdvancedDataGrid in flex3 (Flex 3) with 4 columns:
id : int
category : String
name : String
isPreferred : Boolean

And I would like to add a fifth column
favorite : Image
The value of favorite will be based on the value of is Preferred : if true, then favorite will be a read-heart-icon, if false, a grey-heart-icon.

Below is my code :
the mxml content
<xml version="1.0"?>
<mx:Application xmlns:mx="[URL]" applicationComplete="init()">
<mx:Script>
[Code] .....

View 1 Replies


Similar Posts:


Java :: Implementing Role Based Authorization For Existing App In Flex

Jul 9, 2011

I have an application that is coded using Flex 3 on UI side and java @ the service layer, along with BlazeDS. Now we need to authorize the users accessing the system based on the roles that are defined for them in the database, e.g. : say a user with role guest should not be able to access Admin tab on ui and also should not be able to do any operations other than viewing the data displayed on dashboard. Also the point to note here is that roles can be created dynamically by Super users from UI. I came across this link which describes how to perform Role Based Authentication & Authorization. With this approach I need to define the roles in service-config.xml but since my roles are not pre-defined I cannot go with this.

View 1 Replies

Flex :: Flash - DataGrid Column Width: One Column To Rule Them All?

Nov 16, 2010

I have a Flex 4, mx:DataGrid with the following (pertinent) properties set:

width="100%"horizontalScrollPolicy="off"

I have the minWidth set on all of the DataGridColumns and the width set on one of them. If I simply maximize/minimize the display (in browser or stand-alone flash player) of the application, the columns scale up and down nicely. But if you grab the edge of the application and drag it to make it bigger, only one column grows really big. When you drag the size down again, the one column remains big, but all of the other columns get squished way down.

View 3 Replies

Flex :: Get Column Index Of Header Column In AdvancedDataGrid?

Mar 9, 2010

I want to know column index of header in AdvancedDataGrid when a user clicks on header - either left click or right click.

View 1 Replies

Flex :: Drag And Drop Column Data To Another Column?

Jan 29, 2011

In Flex, using AdvancedDataGrid, I'm trying to achieve a drag and drop of one row's column data to another row's column or the same row but different column. Is this even possible? I've been googling for hours and all I can find are drag and drop whole columns just to rearrange their view order.

View 1 Replies

ActionScript 3.0 :: Set Value Of A Cell In Datagrid Based On Selected Value Of Combox In Another Column?

Jan 9, 2012

when I select an item from my combobox, the selected value in shown in the textInput on the same row in the datagrid. Basically I need some some in the change handler of the combobox I suppose.

HTML Code:
<mx:DataGrid id="myDG" rowHeight="25" dataProvider="{my_arrayColl}" width="100%" height="205" chromeColor="#D0CCAF" headerHeight="0" showHeaders="false">
<mx:columns>

[code]....

View 0 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies

Flex :: Adding Flex Capabilities To An Existing J2EE Enterprise Application Project

Sep 17, 2010

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.

I have build Flex/J2EE applications from scratch but can't think of the best way to do this.

I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5.

View 1 Replies

Flex :: Click On Particular Column Alone?

Jul 29, 2009

How can i set click on particular column alone in Flex Data Grid... i want a click event for that column alone which should open a website.

View 1 Replies

IDE :: Make A Table In Flash And Enable The Column Headers On The Table To Sort Column On Click?

May 4, 2009

How to make a table in Flash and enable the column headers on the table to sort column on click?I have seen some tutorials with mySQL but I'd like to start with something basic. Is a sortable table possible using just Flash and AS 2.0?

View 1 Replies

Flex :: Get The Particular Values In DataGrid Column?

Jul 14, 2009

dg.selectedItems gives me all the values selected, but if i need one column names value alone then what should i do.

<mx:DataGridColumn dataField="1" headerText="Email" />

View 1 Replies

Flex :: DataGrid Column Width?

Aug 17, 2009

In my flex app I store the widths and visiblility of columns in an xml file. When the app loads it reads from the xml file and sets he columns values as applicable:

for(i = 0; i < columnsOrder.length; i++){
newOrder[i] = myDG.columns[Number(columnsOrder[i]) - 1];
newOrder[i].visible = (Number(columnsVisiblity[i]) == 1);

[code]....

View 3 Replies

Flex :: Access Properties Of Column?

Aug 18, 2009

I have following datagrid[code]...

I want to send a name of opponent to a webserver after Delete button is clicked. Can I access correspondent value in datagrid on click event?

View 1 Replies

Flex :: Select A Column In Its Datagrid?

Sep 30, 2009

In a flex datagrid, by default clicking on column headers does sorting. I want it such that if a user clicks a column header the entire column is selected. I have the datagrid listening for the HEADER_RELEASE event so I know when the column header is clicked.

How can I have the column and header appear highlighted similar to how a row is highlighted when selected?

View 2 Replies

Flex :: Get Column Values In Datagrid?

Nov 22, 2009

I want to get all values in one of the columns of a datagrid and put them in an array, to use it as a dataprovider of a combobox, is this possible?

I use an ArrayCollection as the dataprovider of the datagrid, it's filled from the database.

View 1 Replies

Flex :: Datagrid Tab To Checkbox Column

Apr 15, 2012

Context: I have a data grid where the following has been implemented. tabbing through each column in a single row and creating a new row when tabbing from the last column. The last column in my datagrid is now a checkbox. I set the 'editable' to false as shown below (since we don't want editable text to be shown when user clicks on/tabs to checkbox.

Problem: When I tab through the columns of a given row, I cannot tab to the checkbox column and therefore cannot use the space bar to toggle between checked/unchecked. The user is forced to use the mouse to toggle the check box. Question: How do I let user tab to the checkbox column, and press spacebar to toggle between checked and unchecked?

View 1 Replies

Flex :: Highlight The Datagrid Column?

Dec 30, 2009

How to highlight the data grid column?

View 1 Replies

Flex Column Chart Customization

Apr 6, 2010

When I customized the ColumnChart in Flex by overrided updateDisplayList function, colors in legend no longer display. As you will see in the below picture:url...

View 2 Replies

Flex :: Datagrid Column Not Displaying Value

Sep 7, 2010

We have a Datagrid:[code]where practiceJoinRequestThicks is an ArrayCollection of PracticeJoinRequestThick object.The PracticeJoinRequestThick has an Practice Object.Practice has an arraycollection "PracticeContactAddresses" which is an arraycollection of PracticeContactAddress object and Practice ContactAddress object has Address object which has the field city:String.Now when I try to display the City, it does not work.

View 2 Replies

Flex :: Add Datagrid Column Name In Adobe?

Sep 27, 2010

I have defined the datagrid as followsmx:DataGrid id="dg" width="100%" height="100%" >n the part i am trying to get the details from the database and setting the dataProvider for the DataGrid as follows.

var arrayContent:ArrayCollection = new ArrayCollection();
for(var i:int=0;i<assetClassDetails.length;i++)
{

[code]....

View 2 Replies

Flex - Get Checkbox Value Of Datagrid Column?

Feb 25, 2011

i have a datagrid in my web application, i have add a checkbox to datagrid using itemrenderer. how can i get the value of checkbox?

View 2 Replies

Flex :: How To Access Column For Particular Row In DataGrid

Apr 8, 2011

I am stuck in a problem working on Flex datagrid, in an AIR application. How can I access a specific row in datagrid in Flex. I am not talking about the selectedItem or any particular record of dataProvider of datagrid. What exactly I want to do is I am showing some files data (name, description etc.) on a datagrid, and the data of these files comes from an array which is the dataProvider of the datagrid. Now when these files are being uploaded one by one to the server (using a webservice), I want to show a ProgressBar on, say, "Progress" column in the datagrid. How can I access this column for a particular row in datagrid i.e. current file being uploaded.

View 2 Replies

Flex :: Specify PercentColWidth For DataGrid Column In AS

May 16, 2011

Tried
col.setStyle('percentWidth',20) //doesn't work
col.setStyle('percentWidth',0.2)//doesn't work
&&
col.percentWidth //doesnt compile
Where col is one of the columns in a datagrid.

View 4 Replies

Flex :: Datagrid Multiple Components In One Column?

Jun 24, 2009

I wanted to ask if there is a possibility to have both strings and radiobuttons in one column depending on the value of another column perhaps|column1 | column 2 | |r | radiobutton||s | string |If there is an r in column 1 in column2 should appear a radiobutton, otherwise column 2 just shows a string.

View 2 Replies

Flex :: ColumnChart - Any Way To Center Datatip Over Column?

Jun 24, 2009

I'm using a Flex ColumnChart with a custom dataTipRenderer. I'm able to apply a nice skin with the dataTipRenderer, but am not sure how to move the datatip to be centered. Is there a way to have the chart center the data tips over the column instead of the normal top-right alignment the chart does?

Instead of:
|tip text|
+++
+++
+++
+++
+++
+++
+++
+++

I want:
| tip text |
+++
+++
+++
+++
+++
+++
+++
+++

View 1 Replies

Flex :: Filter Only Certain Column In Array Collection?

Jul 13, 2009

Is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid?

View 1 Replies

Flex :: Transposing Set Of Rows As Column In DataGrid

Aug 26, 2009

I have an array like the following one
public var sal:Array=[
{empNo:1001, sal:1000, exp:400},
{empNo:1002, sal:3000, exp:240},
{empNo:1003, sal:1000, exp:452},
{empNo:1004, sal:5000, exp:348},
......
{empNo:1550, sal:2000, exp:330},
];

I need to show data using a 3 row flex data grid where the first row will display empNo, the second row will display corresponding salary(field sal), and the third row will display Expenditure (field exp).

View 2 Replies

Actionscript 3 :: Flex - Add TOTAL Column For AdvancedDataGridColumnGroup?

Oct 23, 2009

I have an AdvancedDataGrid that has a couple AdvancedDataGridColumnGroup's I would like each group to have an extra column, that shows the total of all the other columns in the group. I also need to use my own calc function to calculate the totals. Is there anyway to do this? I hope I explained this well.

View 2 Replies

Flex :: DataGrid - Find The Maximum Value In A Column?

Feb 10, 2010

How would I find the maximum value in a specific column in a Flex DataGrid?

View 2 Replies

Flex :: Have A Sorted Column In Datagrid For Days (Mon, Tue, Wed)

Feb 12, 2010

I have a column in a data grid that has the values of "Monday", "Tuesday" etc, as varchars, and I wanted to know, how do i sort the column to be in the correct order. Doing a normal sort doesnt work obviously, as the days are not alphabetically ordered naturally (Wed after Thurs). I am assuming some sort of itemrenderer, but anyone got a snippet of code to illustrate how this would work?

View 1 Replies







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