yes you're right. but i dont know whether this is a bug or by design.
but i agree, you'd expect the same behaviour for both tabbing out
and mouse outs.
what i usually do is save the currentcell coordinates ...and then if
validation fails, i just set the editedItemPosition back to the
saved cell coordinates eg
dg.editedItemPosition = {columnIndex:savedNum1, rowIndex:savedNum2}
however, ideally i would prefer to stay focused on the current cell
untill further notice.
--- In [email protected], Valy Sivec <[EMAIL PROTECTED]>
wrote:
>
> Hello flexcoders,
>
> I'm working on the same issues for about a day without any luck.
All the examples I've seen so far work correctly for TAB navigation
but fail for mouse navigation and invalid cell will loose the focus.
I might need a final validation before submit the form/grid data,
but I'll do that as a last resort.... I'm still trying to find
something because I suspect that I'm missing something.... is this a
BUG?. Can somebody from Adobe confirm this?
>
> Editable Datagrid is one of the most apealing components, and I'm
kinda surprised to see this issue... but again, it might be me.
>
> Thanks,
> Valy
>
>
>
> ----- Original Message ----
> From: bhaq1972 <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wednesday, November 8, 2006 9:07:18 AM
> Subject: [flexcoders] Re: Prevent focus Out in editable datagrid,
if validator says invalid
>
> have you looked into DataGridEvent. preventDefault( ).
> there's a simple example in the docs titled
>
> "Determining the reason for an itemEditEnd event"
>
> --- In [EMAIL PROTECTED] ups.com, "fritzdimmel"
<fritz.dimmel@ ...>
> wrote:
> >
> > Hi!
> > Is it possible to not let a user leave a editable column in a
> datagrid
> > with a custom textinput with a validator, to focus out (leaving
the
> > edit mode).
> > If the user has to input a number and there's a NumberValidator,
> how
> > can I prevent letting the user leave the textinput?
> >
> > Thanks,
> > Fritz
> >
>
>
>
>
>
>
>
>
_____________________________________________________________________
_______________
> Sponsored Link
>
> Mortgage rates near historic lows:
> $150,000 loan as low as $579/mo. Intro-*Terms
> https://www2.nextag.com/
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/