Actionscript 3 :: When Have Two Of The "same" Objects In Flex Datagrid Then Only One Of Them Can Be Selected

Jul 5, 2009

When you have two of the same records in your data providor (i.e. the same object twice in an array) then the datagrid only allow you to select one of them, see the example below - you can only select the last "Moo".

[Code]...

I'm pretty sure this is becuase of the selectedItem property - i.e. if you have two of the same objects in your dataprovidor and you select on its only going to select the first one it finds. Not sure the best way to resolve this. I could make sure each object is unique by cloning them all. But then I will have to make sure that updates on the 'a' object are propagated to all the "clones" of "a".

View 3 Replies


Similar Posts:


Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 Replies

Flex :: Datagrid - Checkbox Value Not Selected From Database

May 21, 2010

I have a small flex datagrid. The dataProvider is an xmlList. I have two columns, userList and user permissions. The user permissions column as checkboxes. The values for the checkbox are stored as 0 and 1 in mySQL. While returning it from PHP, I am converting them to true or false. Its returning the values correctly to the frontend.

But inside the itemrenderer, the checkbox is not being set to true or false.
Either everything is true or everything is false.

[URL]

How can I correctly set the value of the checkboxes from the DB values?

View 1 Replies

Flex :: Get Linkbutton Label Name And Selected Row Of Datagrid?

May 12, 2011

i am using below code for using linkbutton in flex datagrid

<mx:DataGridColumn headerText="Case ID" width="80">
<mx:itemRenderer>
<fx:Component>

[Code]...

now on link button click i want linkbutton label name and selected row inside lnkCaseIdClick method, how can i do this?

View 2 Replies

Flex :: Get Selected Values (using CheckBox) From DataGrid In It?

Jan 2, 2012

I have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement:i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .[code]...

View 1 Replies

Actionscript 3 :: Deleting Selected Rows From A DataGrid In Flex

Feb 28, 2011

I added a checkbox in a DataGrid using ItemRenderer. I have pasted the code I am using below.

<mx:DataGrid id="dgEmployeeInfo" dataProvider="{resultArray}" x="131" y="95" editable="false">

[Code]...

View 1 Replies

Actionscript :: Scroll The Datagrid Down Or Up To Selected Index Row Flex?

Jul 7, 2011

I am performing a find operation in a datagrid on one of the columns. After I find the row containing the item, I make that as the selected index row, which highlights it. But now I also want to scroll the datagrid down or up (if the item is out of screen scope) to show that selected item automatically on this find operation.

View 1 Replies

Flex :: Get A Cell Value Of A Selected Row In A Mx.dataGrid In Flash Builder

Feb 19, 2012

I thought I could use...

studentID = myDataGid.selectedItem.studentID

Does not want to work for me. Tracing the expression in debug it is returning "XMLList (@11e55e8d1)".

The datasource is an XMLListCollection. tracing the expression myDataGid.selectedItem I can see the studentID node and it has a value.

I see that starting with Flex 4.5, Adobe recommends that we use the spark.components.DataGrid class as an alternative to the mx:dataGrid which I am not at all familiar with or where to start to learn. I have this mx:dataGrid all setup and otherwise working and would prefer not to have to learn something new.

View 1 Replies

Flex :: Datagrid - Highlight Selected Cell Of A Data Grid

Aug 25, 2009

I have a flex data grid.I need to highlight the selected cell of the data grid.

View 3 Replies

Actionscript 3 :: Get The Values Of A Selected Row In The Advanced DataGrid Control In Flex?

Feb 26, 2010

How to get the values of a selected row in the Advanced DataGrid control in Flex

View 1 Replies

Flex :: Get Selected Date On DateField Adobe Datagrid ItemRenderer

Jul 23, 2010

I am trying to get the selected date on the datagrid. I used the itemrenderer to display the datefield on my datagrid.

<mxataGridColumn dataField="dt" headerText="Date of Transaction" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate"/>

View 1 Replies

Actionscript :: Flex Edit DataGrid Cell On Click Only When Previously Selected?

Feb 27, 2010

I need to modify the behaviour of an editable datagrid to this:

-Single-click on a row, doesn't make the cell show a text input field (only selects the row)

-Double-click on a row, doesn't make the cell show a text input field either

but

-Clicking a cell in an already selected row, shows a text input field ready to be edited.

View 1 Replies

Flex :: Delete Item From Collection Bound To Datagrid And Update The Grid Selected Index

Feb 20, 2011

I have a datagrid with an xmlListCollection bound to it:

<mx:DataGrid id="dgCompetente" includeIn="Competente" x="10" y="66" width="547" height="468"
change="dgCompetente_changeHandler(event)" dataProvider="{colCompetente}"
editable="false">

[Code]......

I want the selectedIndex to remain the same. So, if I delete item 2, the next in the list should be selected. The problem is that if I delete item 2, item 3 will be selected and I have no idea why.

View 1 Replies

Flex :: Select Item In Details Form Dropdown When Datagrid Item Is Selected

Feb 15, 2011

I have this datagrid:

<mx:DataGrid id="dgCompetenteN" includeIn="Test" left="10" right="472" top="69" bottom="149"
dataProvider="{colCompetente}" editable="false">
<mx:columns>

[Code]....

What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).

View 1 Replies

Flex :: Assigning An Array Of Objects To A DataGrid?

Aug 24, 2009

When the dataProvider for an DataGrid is an array of objects, how do I set each column's dataField to a property of the object.I have an ArrayCollection (say a) where each item is an objectFor example a[i] = data:ObjectWhere the object data has some subproperties - data.name, data.title, data.content etc.I have a DataGrid in which I want to display this data.So I put:

<mx:DataGrid id="entries" dataProvider="{resultRSS}">
<mx:columns>
<mx:Array>

[code]......

View 1 Replies

Flex :: Data - Displaying Properties From Two Objects In A Datagrid

Dec 11, 2009

Previously I post a discussion on this matter on Flex Adobe forum and still don't understand what needs to be done. So, I'll try my luck again on stackoverflow. I'm using drag and drop data binding functionality in flash builder 4 on a data-grid. However, the data I need to show need to be query from another object.

[Code]....

View 1 Replies

Get Selected Cell Value In Datagrid?

Apr 5, 2012

I have a datagrid that is editable. I was wondering if it's possible to retreive the cell value after user edits the single cell.

My datagrid will trigger griditemEditorSessionSave event if users finish the editing, but I don't know how to get the new cell value. [code]...

View 1 Replies

ActionScript 3.0 :: Delete Selected Row In Datagrid?

Dec 1, 2009

How do i delete the selected row in datagrid, and how can i change the selection color. at present it turns blue, i want it be red on selection, and then on some button click want to delete the selected row.

View 2 Replies

ActionScript 2.0 :: Get The Selected Index In A Datagrid?

Jan 18, 2007

How do you get the selected index in a datagrid, thats it

by the way the actual situation is that I'm tryin to show the data of a selected row in a datagrid, when a row is selected the current slide is set as invisible and the message_view slide is made visible and the data is shown in a text box. e.g.

on_datagrid_click_event (
text_box.text = data_at_selected_index;
this._visible = false;
_parent.messageView._visible = true;
}

View 8 Replies

ActionScript 3.0 :: DataGrid - Selected Row Does Not Highlighted

Jun 15, 2009

When i add a function to dispatch Mouse clicks on my DataGrid component like this:

Code:
myDataGrid.addEventListener(MouseEvent.CLICK, selectRow, false, 0, true);

selected rows (by mouse click) are not highlighted when i click once. but they highlights when i click twice. Maybe i'm not registering correctly the event ?

... and when i remove the event - evryting is work perfect.

here is the selectRow function

Code:
private function selectRow(e:MouseEvent):void {
if(e.target is CellRenderer) {
// do something
}
}

View 1 Replies

ActionScript 3.0 :: Change Color Of Datagrid Selected Row?

Dec 1, 2009

how to change the color of the selected row of datagrid in as3.

in as2 it was like dataGrid.setStyle("selectionColor", "0x990000");

but how to achive this in as3

View 1 Replies

IDE :: DataGrid - Directly Accessing All Data In Row Selected?

Mar 5, 2008

I have a cs3(AS3) datagrid component and I'm tracking which row the user has selected by using ListEvent.ITEM_CLICK to listen for a selection and then event.rowIndex in the handler function and using this index no to select data from the array which was used with the dataProvider. The problem is this. If the user re-sorts the rows using the column headers, this resets the rowIndex (ie the first entry is always row 0) and so this no longer relates back to my array. Is there a way to directly access some or all of the data in the row the user selects?

View 3 Replies

ActionScript 3.0 :: Determining The Selected Row In User Sorted DataGrid?

Nov 3, 2009

How should I go about matching the selected row of a sorted DataGrid to its source data row within its associated data provider?

For example, once a user sorts a DataGrid by clicking on one of the column headers, the target.selectedIndex from the CHANGE event (generated next time a row is selected) represents the index of the sorted row and not the index of the data as supplied by the data provider. Is there a simple way to map the index of the user selection back to the index of the original data?

View 2 Replies

ActionScript 3.0 :: Showing Different Style/effect For Selected Row In Datagrid?

Jan 27, 2012

I have a requirement to show an arrow mark when a row is selected in datagrid as shown in the attached picture.The selected line should show an arrow style instead of normal line.

View 3 Replies

ActionScript 2.0 :: Show PopUpManager On Selected Datagrid Column?

May 27, 2010

i have datagrid and i want that when i click on my EmpName column popopmanager must be display and when i click on other columns it shouldnt display.and i want also edit mode in every column when i click opn it.

View 2 Replies

Database :: DataGrid - Display Selected Item Across Couple Of Labels

May 11, 2011

I have a datagrid that loads content from a database. Once the data has been loaded I have a function that has
selectedIndex=0;
Right after that I call another function that tries to display the selected item across a couple of labels. The problem is nothing loads in the labels unless I run the functions twice. I'm guessing its some sort of data race problem where the item hasn't been selected by the time the function that displays the items in labels runs. How can I get the item to be selected before the next function runs.

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 :: Datagridview - Array Objects And Datagrid With Link Button (Clear Button) In Adobe?

Jun 21, 2009

I have an an array of objects. I populate the datagrid from the array. The nmber of columns in the datagrid is fix i.e.5 and the first column always shows serial number (0,1,2,3,4). I have a link button called 'CLEAR' in the last column of the datagrid.

1> How do I make the clear button visible only when the row is particularly clicked 2> When the clear button is clicked, how do I make the contents of that particular row cleared. Not deleted, only cleared to insert data again. Also, the serial number (0,1,2,3,4) should not be cleared, nor deleted. How to do this ?

View 1 Replies

IDE :: Does Flash Have A Way Of Isolating The Selected Blending Mode To Just The Layers Or Objects

Mar 25, 2009

I'm new to the whole flash thing and I'm learning on flash 8 - In photoshop you can group layers so that the blending mode you use on a layer will only apply to the layers in that group... I've been searching all over, and maybe it's right in front of me, but does flash have a way of isolating the selected blending mode to just the layers or objects of the user's choice?

View 6 Replies

ActionScript 3.0 :: Datagrid - Make The Checkbox In Col1 Selected When Selects The Checkbox In Col2

May 4, 2009

I am using datagrid and added 3 columns to it in flex project. Data is provided to each column by using itemrenderer. Itemrenderer is checkbox for each column. Name of columns are col1,col2,col3. I want to make the checkbox in col1 selected when i selects the checkbox in col2. But i am not able to do this.

View 1 Replies







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