RE: [flexcoders] Setter question

2008-01-04 Thread mark goldin
tells its dropdown List what to display. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, January 03, 2008 6:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Setter question

RE: [flexcoders] Setter question

2008-01-03 Thread mark goldin
Combo: package CustomComponents { import mx.controls.*; import mx.controls.listClasses.*; import mx.collections.*; import flash.events.Event; import mx.events.*; public class comboItemRenderer extends ComboBox implements IDropInListItemRenderer { public function

RE: [flexcoders] Two way binding

2008-01-02 Thread mark goldin
. Tracy - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Monday, December 31, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two way binding Aha, I see. Why would you

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread mark goldin
[mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Monday, December 31, 2007 1:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two way binding Let me make sure I understand. You are talking about something like this: ?xml version=1.0? !-- Models

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread mark goldin
@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I can't understand what you have from your description. Post the relevant code snippets. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Wednesday

Re: [flexcoders] Two way binding

2007-12-31 Thread mark goldin
And how data from server gets into the Model? Douglas Knudsen [EMAIL PROTECTED] wrote: What's wrong with this? mx:TextInput text={ someReferenceToAModel.property } / Now, you can use the Binding tag to bind the value in the above back to the source, your datagrid in this case, but its

RE: [flexcoders] Two way binding

2007-12-31 Thread mark goldin
AM, mark goldin [EMAIL PROTECTED] wrote: And how data from server gets into the Model? Douglas Knudsen [EMAIL PROTECTED] wrote: What's wrong with this? mx:TextInput text={ someReferenceToAModel.property } / Now, you can use the Binding tag to bind the value

RE: [flexcoders] Two way binding

2007-12-31 Thread mark goldin
to an instance variable typed as XML. Then bind the form elements to that: mx:Text [EMAIL PROTECTED] …? Tracy - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Monday, December 31, 2007 11:45 AM

RE: [flexcoders] Two way binding

2007-12-31 Thread mark goldin
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Monday, December 31, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two way binding Aha, I see. Why would you suggest am xml based model over a class based one? Tracy Spratt [EMAIL PROTECTED] wrote

Re: [flexcoders] Re: Using Restrict property in DataGrid

2007-12-29 Thread mark goldin
The thing is I am adding itemRenderers to the DataGrid later in my code: var ConsistPersonnel1Worknum:ClassFactory = new ClassFactory(textItemRenderer); var consistPersonnel1Worknum:AdvancedDataGridColumn = Personnel1Grid.columns[2]; consistPersonnel1Worknum.itemRenderer =

Re: [flexcoders] Re: Using Restrict property in DataGrid

2007-12-29 Thread mark goldin
(restrictCells, [e.columnIndex]); } private function restrictCells(columnIndex:int):void { if(this.listGrid.itemEditorInstance == null){ return; } var textInput:TextInput; } George mark goldin wrote: The thing is I am adding itemRenderers to the DataGrid later in my code: * * * * * * *var

RE: [flexcoders] What event to catch

2007-12-28 Thread mark goldin
that it bubbles - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] What event to catch Is there an applicable

RE: [flexcoders] Filter typing characters

2007-12-28 Thread mark goldin
Does restict property work for DataGrid fields? Alex Harui [EMAIL PROTECTED] wrote: Most of our text components support the .restrict property (see TextField.restrict). You can also capture the textInput event - From:

RE: [flexcoders] What event to catch

2007-12-27 Thread mark goldin
Is there an applicable event at the Gird level? Alex Harui [EMAIL PROTECTED] wrote: focusOut - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 6:18 AM To:

RE: [flexcoders] Icon for Button

2007-12-27 Thread mark goldin
? - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icon for Button I am using this code: var

Re: [flexcoders] Reusability question

2007-12-26 Thread mark goldin
Yes, I can create a generic method for my Grid: public function doSomethingAfterRowIsAdded():void { } But I can't have any code there because it is specific to an object instatiation. Frederico Garcia [EMAIL PROTECTED] wrote: markgoldin_2000 escreveu: I am designing a

Re: [flexcoders] Reusability question

2007-12-26 Thread mark goldin
DataGrid for each object in my project? Frederico Garcia [EMAIL PROTECTED] wrote: mark goldin escreveu: Yes, I can create a generic method for my Grid: public function doSomethingAfterRowIsAdded():void { } But I can't have any code there because it is specific to an object

RE: [flexcoders] ComboBox ItemRenderer

2007-12-22 Thread mark goldin
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Friday, December 21, 2007 1:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ComboBox ItemRenderer No, that's not what I meant. I mean without using any ids, names, and etc. Something like

RE: [flexcoders] ComboBox ItemRenderer

2007-12-22 Thread mark goldin
example. Tracy - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Saturday, December 22, 2007 12:02 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Is there anything

RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer

2007-12-22 Thread mark goldin
Yes, it does work. But, when it is an editable control and DG is editable too then I have a problem. As soon as I drop it down (nothing else) its value gets replaced with an underlying value from the DG's datasource. Alex Harui [EMAIL PROTECTED] wrote: Combobox has been

RE: [flexcoders] ComboBox ItemRenderer

2007-12-22 Thread mark goldin
IDropInLIR anymore. If you pass in XML to the DG’s dataProvider property, it will be wrapped in an XMLLIstCollection when you read it back. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Saturday, December

RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer

2007-12-22 Thread mark goldin
? rendererIsEditor or itemEditor=ComboBox? Are the values for the column valid items in the CB’s dataprovider? Which version of Flex are you using? - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Saturday, December

RE: [flexcoders] ComboBox ItemRenderer

2007-12-22 Thread mark goldin
PROTECTED] On Behalf Of mark goldin Sent: Saturday, December 22, 2007 3:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Not sure I understand. I am using Flex 3 Beta. I am trying to get DG's complete XML in Combo's change event but can't

RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer

2007-12-22 Thread mark goldin
? - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Saturday, December 22, 2007 4:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer Something like

RE: [flexcoders] Editable DataGird, Editable ComboBox as itemRenderer

2007-12-22 Thread mark goldin
can’t match and you’ll need some custom code to search the arraycollection for the right item and set selectedIndex appropriately. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Saturday, December 22, 2007

[flexcoders] ComboBox ItemRenderer

2007-12-21 Thread mark goldin
I am using a Combobox as an itemRenderer for one of columns in a DG. I have managed to intercept change event of the combobox. But what do I do to store new value from Combo into DG's dataProvider for the following data save to the server? What is an actual design pattern for that?

Re: [flexcoders] Re: DataGrid question

2007-12-21 Thread mark goldin
How do you override selectItem? ben.clinkinbeard [EMAIL PROTECTED] wrote: Subclass DataGrid and override selectItem, drawHighlightIndicator and drawSelectionIndicator so that they do nothing. --- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote: I asked a while back

Re: [flexcoders] ComboBox ItemRenderer

2007-12-21 Thread mark goldin
weemcStatus:Array = (new XMLListCollection(xmlStatus.status)).toArray(); ]] /mx:Script /mx:ComboBox On 12/20/07, mark goldin [EMAIL PROTECTED] wrote: I am using a Combobox as an itemRenderer for one of columns in a DG. I have managed to intercept change event

Re: [flexcoders] ComboBox ItemRenderer

2007-12-21 Thread mark goldin
PROTECTED] wrote: ownerdata is a variable that is set to the DG's row data. ownerData = value as XML; get's the row data. sorry i should have commented it more On 12/21/07, mark goldin [EMAIL PROTECTED] wrote: Not sure I understand about ownerData

Re: [flexcoders] ComboBox ItemRenderer

2007-12-21 Thread mark goldin
the variable parentApplication is a set flex variable that get's all the data in the main app. On 12/21/07, mark goldin [EMAIL PROTECTED] wrote: Aha, I see. Let me make sure I understand. ownerData is defined in set method. That means it's set as many times

[flexcoders] Binding - from Item renderer back to datasource

2007-12-21 Thread mark goldin
What exactly do I need to update in order to store new data from a custom item renderer editing DataGrid? Do I have to work with a dataProvider or DataGrid? Some code sample would be nice. Thanks