Re: [flexcoders] DataGrid cell problem overriding setFocusedCell() method

2005-05-09 Thread Jim Laing
On 5/9/05, Jim Laing <[EMAIL PROTECTED]> wrote:
> I'm not able to replicate your problem. 

AHHH! Spoke too soon again! That's twice in one day ... I can, in
fact, replicate the problem. I did it wrong before 

However, not only can I replicate your problem, I can also fix it
(this is a hack cause I did it quick, but you get the idea): Overload
the disposeEditor() function and make it destroy the dropdown movie
clip. See the code attached.

I'm still interested in what your requirements are cause my solution
might be more general, if it is applicable (the idea of removing the
combobox dropdown comes it ... via MM support).

Jim

function disposeEditor() : Void {
cellEditor.dropdown.removeMovieClip();
cellEditor.mask.removeMovieClip();
super.disposeEditor(); 
}


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] DataGrid cell problem overriding setFocusedCell() method

2005-05-09 Thread Jim Laing
On 5/9/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> The problem i have is, the combobox dropdown doesnt close, when you
> click elsewhere on the Datagrid.
> There is no problem if combobox.editable = false (initial parameter
> passed to craeteClassObject)

I'm not able to replicate your problem. I ran the code posted and the
focus changed as it should from cell to cell. Can you make sure that
the code you posted is identical to the code you are testing? If so, I
guess we'll have to start comparing versions and setups, etc.

The issue that the code posted *does* display is that the combo box
does actually edit the data provider. This can likely be solved by
overriding the editCell() function so that it actually gets the
correct data from the cellEditor.

Also, what exactly are you trying to accomplish? I may have a solution
that might work for you (but implemented differently), so I'm
interested in the requirements. Also, I'll have to ask my boss to make
sure I can release the code.

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/