RE: [flexcoders] Using CheckBox as ItemEditor

2007-02-13 Thread James T. Riffe
Try this:

mx:DataGridColumn
headerText=Dropship dataField=dropship textAlign=center width=40
editable=false

 
mx:itemRenderer

 
mx:Component

 
mx:VBox horizontalAlign=center

 
mx:CheckBox click=data.dropship=!data.dropship
selected={data.dropship}  /

 
/mx:VBox

 
/mx:Component


 
/mx:itemRenderer

/mx:DataGridColumn

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dmiramontesval
Sent: Tuesday, February 13, 2007 5:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using CheckBox as ItemEditor

 

I am having troubles while using a CheckBox control inside a
DataGridColumn as an itemEditor.

First i tried this:

mx:DataGridColumn dataField=idDoctoEnvio headerText= 
itemEditor=mx.controls.CheckBox editorDataField=selected editable
= true/

And it didn't work, so i tried this instead:

mx:DataGridColumn dataField=idDoctoEnvio headerText= 
editable=true rendererIsEditor=true
itemEditor=com.legosoft.mxml.ItemEditorCheckBox
editorDataField=cbSelected width=45/

where ItemEditorCheckBox is:

mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
mx:CheckBox id=editorCB height=100% width=100%
selected={data.FollowUp}
click=cbSelected=editorCB.selected
updateComplete=cbSelected=editorCB.selected;/

mx:Script
![CDATA[
[Bindable]
public var cbSelected : Boolean;
]]
/mx:Script
/mx:VBox

And that didn't work either, so what's the deal here? How can i use a
CheckBox control as an itemEditor?

By the way, both attempts to make this work were taken from the Flex
Developer's Guide...it was supposed to be working, i mean its on
the dev guide, right?

 



RE: [flexcoders] RESKINNING AN Alert

2007-02-11 Thread James T. Riffe
I'm looking for a way to re-skin the Alert popup. If anybody has a way to-do
it an example would be nice. I've tried taking the Alert into a private
function, however backgroundAlpha, background colors and text colors don't
seem to be available. I'll have to assume if this can't be done either
through AS3 or through CSS that I will have to write a popup to substitute
for the alert.show.

 

Thanks in advance

James

 



RE: [flexcoders] drag/drop question

2007-02-05 Thread James T. Riffe
Are you using a ArrayCollection as a dataprovider?

 

James

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darvon4u
Sent: Monday, February 05, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag/drop question

 

We're trying to re-rank the collection for datagrid after the user
re-orders the items with drag/drop.

here is an example. before:

1 a
2 b
3 c

now, supposedly we drag item 1 to the last place. we want to rerank it
so the first column still shows the order (line #), while the
collection has been changed.

after:

1 b
2 c
3 a

we have tried everything to get it to work. it just doesn't sort
properly. what i need to do is renumber AFTER EVERYTHING (all the
drag/drop events have been triggered). tried to do this in
dragcomplete or dragdrop handlers, to no avail.

Does anybody have any ideas? spent like 3 days on this, any help would
be truly appreciated!

Thanks,
-A

 



RE: [flexcoders] binding a data grid column to a text input control

2007-01-19 Thread James T. Riffe
You will need to bind it to the dg.selectedItem.columnname

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Roger Ross
Sent: Friday, January 19, 2007 10:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] binding a data grid column to a text input control

 

Hello,

Flex Newbie!

I found an example of data binding from text input to a label, but I
need to bind the data from a column in a data grid to a text input
control!

Any examples?

Thank you,

Roger