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


Similar Posts:


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

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 :: Actionscript 3 - Populating A Datagrid With Variable Number Of Columns And Rows

May 17, 2010

I am trying to figure out how to manage a Datagrid based on an XML object like this:

[Code]...

I will need to populate the Datagrid column names based on a different XML object and use the above XML to populate each of the column's rows. I currently am able to create the Datagrid and populate its column headers but I am unsure as to how to how to add the rows for each column. The above XML will be update with new row and column elements added and deleted. This, of course, will be bound to the Datagrid to show updates.

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 :: 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 :: Spark DataGrid Disable Horizontal Scroll And Resize Columns?

May 10, 2011

Is there a way to get the columns to resize to the width of the new Datagrid instead of overflowing and showing the scrollbar? I've tried on the skin, setting all relevant properties and ran out of options. I just want it to behave like the previous Datagrid where the columns would resize to the width of the datagrid.

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

ActionScript 1/2 :: SOS: Change Color Of Selected Menu Item Button If Selected

May 19, 2010

I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.

View 2 Replies

ActionScript 3.0 :: Disable All RadioButtons When One Selected In Same Group

Feb 19, 2009

I have this to create radiobuttons. How can I now disable all radiobuttons in the same group when one is selected..?
Code:
var radioGroup:RadioButtonGroup=new RadioButtonGroup("group_"+i);
for (var r=0; r<10; r++) {
var tipsRb:RadioButton = new RadioButton();
tipsRb.value=r+1;
tipsRb.label=""
[Code] .....

View 4 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

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 :: 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

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

ActionScript 3.0 :: Disable Click Event Of Datagrid Of Top Columns?

Jul 20, 2011

I wanna disable click event of datagrid of top columns, which is showing catagoeries string values.

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







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