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
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
.
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
[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
@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
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
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
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
@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
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 =
(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
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
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:
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:
?
-
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
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
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
: 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
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
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
IDropInLIR anymore.
If you pass in XML to the DGs 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
? rendererIsEditor or
itemEditor=ComboBox? Are the values for the column valid items in the CBs
dataprovider? Which version of Flex are you using?
-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark
goldin
Sent: Saturday, December
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
?
-
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
cant match and youll 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
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?
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
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
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
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
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
31 matches
Mail list logo