flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Frampton <cfram...@adobe.com>
Subject Re: Spark Datagrid editor session ending
Date Wed, 28 Nov 2012 16:54:01 GMT
I think you override IGridItemEditor save() to do what you want.


On 11/28/12 11 :29AM, "João Fernandes"
<joaopedromartinsfernandes@gmail.com> wrote:

>Carol, with mx:Datagrid you can prevent a edit session from ending by
>calling preventDefault on sessionEditEnd event. There is no way to achieve
>the same with the spark datagrid. Being able to capture the sessionEditEnd
>allow me to use a generic item editor and instead of implementing
>validate() in the itemEditor, I can listen to the sessionEditEnd, once the
>event is fired, it willl run my listener function and call
>if my data isn't valid, which prevents the session to be terminated.
>On 28 November 2012 16:18, Carol Frampton <cframpto@adobe.com> wrote:
>> not quite sure what you are trying to do but I bet you can currently
>> do it with the existing Spark DataGrid.  You may have to do it
>> differently.  Have you looked at [1]?  Would it be possible to provide a
>> small example?
>João Fernandes

View raw message