RE: [Flashcoders] dataGrid and editable text...
Adding focusIn and focusOut listeners as shown below should help you out...I found that even though I set a column to editable.false it would open itself for data occasionally when going (clicking) from an editable cell to an un-editable one...HTH // admin_dg cell focus in listener object var mfrAdmin_dgListener:Object = new Object(); mfrAdmin_dgListener.cellFocusIn = function(evt_obj:Object) { var cell_str:String = "("+evt_obj.columnIndex+", "+evt_obj.itemIndex+")"; //trace("The cell at "+cell_str+" has gained focus"); var Verified:String = new String(evt.target.selectedItem.verified); // Make DataGrid uneditable mfrAdmin_dg.editable = false; if (Verified == "true") { // Make DataGrid uneditable mfrAdmin_dg.editable = false; submit_btn.enabled = false; var notify = Alert.show("Credentials are verified:\n no changes allowed.", Alert.OK, this); notify.title = "MFR Credentials - Verified"; } else if (Verified == "false") { // Make DataGrid editable mfrAdmin_dg.editable = true; // Make the UName column read-only mfrAdmin_dg.getColumnAt(1).editable = true; mfrAdmin_dg.getColumnAt(2).editable = true; mfrAdmin_dg.getColumnAt(0).editable = false; mfrAdmin_dg.getColumnAt(3).editable = false; } }; // Add listener mfrAdmin_dg.addEventListener("cellFocusIn", mfrAdmin_dgListener); // admin_dg cell focus out listener object var mfrAdmin_dgListener:Object = new Object(); mfrAdmin_dgListener.cellFocusOut = function(evt_obj:Object) { var cell_str:String = "("+evt_obj.columnIndex+", "+evt_obj.itemIndex+")"; //trace("The cell at "+cell_str+" has lost focus"); var Verified:String = new String(evt.target.selectedItem.verified); // Make DataGrid uneditable mfrAdmin_dg.editable = false; mfrAdmin_dg.getColumnAt(0).editable = false; mfrAdmin_dg.getColumnAt(1).editable = false; mfrAdmin_dg.getColumnAt(2).editable = false; mfrAdmin_dg.getColumnAt(3).editable = false; submit_btn.enabled = true; }; // Add listener mfrAdmin_dg.addEventListener("cellFocusOut", mfrAdmin_dgListener); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Monday, May 22, 2006 2:06 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] dataGrid and editable text... You know, even if I SET the grid.editable = false, the first column is ALWAY editable. I've even flipped cellRenderers as tests -- this thing is driving me bonkers. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] dataGrid and editable text...
You know, even if I SET the grid.editable = false, the first column is ALWAY editable. I've even flipped cellRenderers as tests -- this thing is driving me bonkers. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] dataGrid and editable text...
It seems to be always editable. menuGrid.dataProvider = pMenu; // setting editable stuff menuGrid.editable = true; menuGrid.getColumnAt(0).editable = false; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] dataGrid and editable text...
Let me guess...column 1 is un-editable if you try and edit it first, but when you go from an editable column to column 1 sometimes it is editable right? Or is it always editable? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Monday, May 22, 2006 1:42 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] dataGrid and editable text... Dammit - them beanz ain't cool enough... hate to be more of a PITA than I already am -- but now I want to make the first column NOT editable. So I've set the db.editable = true -- that sets all them beanz editable. Then I've dg.getColumnAt(0).editable = false -- and that bean is still flipping into an editable textField. I'm sure it's just the way I'm doing something idiotic... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] dataGrid and editable text...
Dammit - them beanz ain't cool enough... hate to be more of a PITA than I already am -- but now I want to make the first column NOT editable. So I've set the db.editable = true -- that sets all them beanz editable. Then I've dg.getColumnAt(0).editable = false -- and that bean is still flipping into an editable textField. I'm sure it's just the way I'm doing something idiotic... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] dataGrid and editable text...
Kool Beanz Grimm... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Monday, May 22, 2006 1:27 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] dataGrid and editable text... AH! Thanks Matthew -- though I didn't set the grid.editable to false -- when I set it to TRUE, then it all worked. So though the columns themselves are set to true, if the grid wasn't set to true, it canceled it all out... Thanks again. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] dataGrid and editable text...
AH! Thanks Matthew -- though I didn't set the grid.editable to false -- when I set it to TRUE, then it all worked. So though the columns themselves are set to true, if the grid wasn't set to true, it canceled it all out... Thanks again. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] dataGrid and editable text...
As long as the grid itself and the columns within are set to editable, the grid through the IDE or programmatically and the columns programmatically, you should not have any problems accessing a field within...I'd have to look at the code... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Monday, May 22, 2006 12:52 PM To: Flashcoders mailing list Subject: [Flashcoders] dataGrid and editable text... Ok if I create a datagrid and assign a dataprovider, all the datagrid components are fields, but only the first colun is editable -- I've tried doing dg.getColumnAt(2).editable = true both before and after the dataProvider set, but it's always just the first column that remains editable... what is it I'm missing? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com