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
Similar Posts:
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
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
Feb 28, 2012
I have a datagrid with some custom renderrers and I'm just curious how I should approach the ability to freeze and always show the left 3 most columns at all times when scrolling left/right.
I thought that I might have to resort to 2 datagrids, side-by-side, the first showing the 3 columns that I want at all times, and the ability to scroll the rest. Only issue then I guess is linking the row selection to select that row in both and to tie the column sorts together...
Or would it be better to try and take columns 4+ and shrink their width to 0 as a person scrolls right, and then increase it back to the max width as they scroll left? Though that would cause funny issues to happen as the content of the datagrid would get smaller and smaller until you were 100% to the right and the scrollbar would disappear.
View 1 Replies
Oct 5, 2009
I have a column chart that displays several items. When you click the bar of one of the items, the chart changes to display a new chart of details of that item. However, if the mouse is not moved, the datatip from the first chart is now visible on the second chart. Is there a way to hide the datatip when the first bar is clicked and then show the new datatip for the second chart once it's visible?
View 0 Replies
Jun 13, 2011
In AS2, we can get it using myDataGird.columnNamesHow about AS3?
View 1 Replies
Feb 21, 2004
I basically want to be able to drag any item out of that list, and when doing so, have it that item automatically go to the bottom, and have the remaining items scroll up. I can handle the drag and drop part of it, but I'm confused on how I could get the remaining column of items to dynamically move up depending on which item is taken out. I'm thinking mayble along the lines of an array?
View 5 Replies
Aug 11, 2009
I wanted to put a checkbox in one of the column of the datagrid. I tried using the cell renderer and could get a column with check box. But the problem is I want the datagrid for touchscreen and it should have multi selection enabled. As I select one check box the previously check box gets cleared. Pressing down the ctrl key do the job but in touchScreen that cannot be done. I read some posts in google where it was said that generating false CTRL press event. I have attached the cellrenderer for the checkbox that I have used.
Attachments: checkBoxCellRenderer.txt (1.7 K)
View 1 Replies
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
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
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
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
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
Dec 30, 2009
How to highlight the data grid column?
View 1 Replies
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
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
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
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
Jul 28, 2005
I'm trying to create an XML driven menu for my portfolio site. I'm basing the code concept off Senocular's tutorial on this site, but I'm basing the aesthetic/operational idea off portfolio menus such as those seen on [URL] and basically every other portfolio site that uses small thumbnails as icons to present larger versions of the work.
Functionally, I think I've got it down (it's basically the tutorial code with the submenu functions stripped out), but I'm struggling with trying to figure out how to display my attachMovie'd items in a logical row/column fashion... i.e. if I had 7 items in my XML file and wanted the row to exist in threes, I'd have two rows of three and one row of one.
I'm sure there's a very simple solution to this that I'm simply overlooking. I was just thinking about trying to implement this via some type of counter/multiplier for the _y property.
View 2 Replies
Jan 21, 2011
I often populate my datagrids with a recordset, an array of record objects, by passing the recordset in the dataprovider constructor. However, this results in unpredictable column ordering i.e. it doesn't correspond to the order of the fields in the record object. I know you can define the columns and then use add item to add the records to resolve this, but I'm curious why the datagrid doesn't order the columns according to the record object field order in the first place and why the order can actually change between renderings of the datagrid?
View 2 Replies
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
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
Feb 10, 2010
How would I find the maximum value in a specific column in a Flex DataGrid?
View 2 Replies
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
Mar 15, 2010
In flex, I have a datagrid with 22 columns. I initially display all the columns. The width of each column right is uniform. Now when i change the visiblity of a few columns, the width of each column varies. How do i maintain a uniform column width for each column whether or not there are any invisible columns? how do i get the count of number of visible columns. the ColumnCount property returns total number of columns and not the number of visible ones.
View 3 Replies
May 17, 2010
Is it possible to call the function by using the datagrid column item?I want to call the function while the user click the particular column item in the datagrid?
View 1 Replies
May 31, 2010
I am trying to make only one of the columns of a datagrid as sortable using flex 3. but using sortableColumns all the columns change their property.
View 2 Replies
Sep 14, 2010
I have a datagrid with three columns.In one column I have to add all the values and display the total value.
View 1 Replies
Jan 4, 2011
In the below example I has called the OptimizeDataGrid method on Button Click event to resize the Column according to the data. whereas on the First Time of the Button Click event It called the function whereas the Datagrdi Column width alone is not set properly.whereas on second time it is working properly.For Eg : In the below statement the text value is coming as 55 and widthPadding is comes as 25. but the sum of these two value is not in the dg.columns[col].width.
dg.columns[col].width = text + widthPadding;
But the same is working on the second time of the Button click event.
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;[code].....
View 1 Replies
Jan 26, 2011
I need to format the column with a currency formatter. I know how to do currency formatting I just need an example on how to implement it into the datagrid column.
View 2 Replies