Here's a snippet from one of the dg's I have to edit...HTH 

var mfrAdmin_dg:DataGrid;
var mfrAdmin_dgListener:Object = new Object();
mfrAdmin_dgListener.change = function(evt:Object) {
        
        //trace("Selected MFR = "+evt.target.selectedItem.manufacturer);
        //trace("Selected USR = "+evt.target.selectedItem.username);
        //trace("Selected PWD = "+evt.target.selectedItem.password);
        //trace("Selected VFD = "+evt.target.selectedItem.verified);
        
        //trace("DS Length = "+mfrAdmin_ds.length);
        
        
        var Verified:String = new
String(evt.target.selectedItem.verified)
        
        // Make DataGrid read-only
        mfrAdmin_dg.editable = false;
        
        
        if (Verified == "true") {
                        
                // Make DataGrid read-only
                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";
                notify.move(330,270);
                        
        }else if (Verified == "false") {
                
                // Make DataGrid editable
                mfrAdmin_dg.editable = true;
                // Make the Username & Password column editable
                mfrAdmin_dg.getColumnAt(1).editable = true;
                mfrAdmin_dg.getColumnAt(2).editable = true;
                
                _root.application.breadcrumb_mc.bc1_mc._alpha = 50;
                _root.application.breadcrumb_mc.bc2_mc._alpha = 50;
                
                submit_btn.enabled = true;

        }
};
mfrAdmin_dg.addEventListener("change", mfrAdmin_dgListener); 




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
grimmwerks
Sent: Monday, May 22, 2006 10:27 AM
To: Flashcoders mailing list
Subject: [Flashcoders] cellRender and editField questions

Hey all -

I've got a dataGrid that I'm filling with custom cells -- one is the
multiline cell render example from Macromedia.

How exactly do I deal with an editField for this so that when one
doubleclicks it they can change the text?

Any help appreciated.
_______________________________________________
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

Reply via email to