RE: [Flashcoders] cellRender and editField questions

2006-05-22 Thread Matthew Simpson
I see...I looked at the example...stupid question is your dg.editable =
true?  

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

Not exactly, but I appreciate the post.

My problem is that even if I set something as editable, I'm not getting
a textField where one can enter the data.

For example in this tutorial:
http://www.flash-db.com/Tutorials/cellrenderer/

If you doubleclick the car icon, you get a textField to enter in text.
But in the iconCellRender.as I can't find anything that has to do with
creating that textfield, etc.

I want to have multiple things like this in a grid - something that
someone can double click and change...
___
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] cellRender and editField questions

2006-05-22 Thread grimmwerks

Maybe I spoke too soon - is the editableLabel just an inherent part of
a UIComponent? Maybe it's the way I'm creating the columns that is the
problem; I just set the carDB icon column to editable = false and it
shut it off properly...
___
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] cellRender and editField questions

2006-05-22 Thread grimmwerks

Not exactly, but I appreciate the post.

My problem is that even if I set something as editable, I'm not
getting a textField where one can enter the data.

For example in this tutorial: http://www.flash-db.com/Tutorials/cellrenderer/

If you doubleclick the car icon, you get a textField to enter in text.
But in the iconCellRender.as I can't find anything that has to do with
creating that textfield, etc.

I want to have multiple things like this in a grid - something that
someone can double click and change...
___
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] cellRender and editField questions

2006-05-22 Thread Matthew Simpson
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


[Flashcoders] cellRender and editField questions

2006-05-22 Thread grimmwerks

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