Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 277F6E823 for ; Wed, 28 Nov 2012 16:30:14 +0000 (UTC) Received: (qmail 20623 invoked by uid 500); 28 Nov 2012 16:30:13 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 20524 invoked by uid 500); 28 Nov 2012 16:30:13 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 20501 invoked by uid 99); 28 Nov 2012 16:30:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 16:30:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joaopedromartinsfernandes@gmail.com designates 209.85.215.175 as permitted sender) Received: from [209.85.215.175] (HELO mail-ea0-f175.google.com) (209.85.215.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 16:30:05 +0000 Received: by mail-ea0-f175.google.com with SMTP id h11so5239803eaa.6 for ; Wed, 28 Nov 2012 08:29:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=wpYfapElH0IDbCC9F/UrHWmVW5x8u9qloeE3T+/cCEE=; b=RJMhrrJH4IWUaWhKfFY1fnvzUVTExffLuJWPNZMFfrMWp/eLxrKPAaRmn4XQ4xwW9/ cc8gM3o3CsMiWNPLIgwnNBZyCDokRouGY3Zi0hjihi1/TE4k9qlw8vgUG4r5Hf7L+g1l nLJD8Qx5p5p2SJh1Pun5rlZGyGKB1qJMy6K7XuHWM5+Q38pPuUI2+P6T/Q+m00uhOGTz 64SZTuUxCEld+diRl8hOaQBxetzYR8EW/Mvazn3Rjo5BTf2SQ7bJpLiycPWD6lHkTnHK 4bnjfiwiVIf4p0Cy08eYe4UIYzL9jtQrfIHffxYTBeRKcKKQd8NwAlpa11rOyoqTD0kn R8Hw== Received: by 10.14.172.195 with SMTP id t43mr71588079eel.17.1354120184805; Wed, 28 Nov 2012 08:29:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.68.9 with HTTP; Wed, 28 Nov 2012 08:29:24 -0800 (PST) In-Reply-To: References: From: =?ISO-8859-1?Q?Jo=E3o_Fernandes?= Date: Wed, 28 Nov 2012 16:29:24 +0000 Message-ID: Subject: Re: Spark Datagrid editor session ending To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b621ee6993ac304cf90acff X-Virus-Checked: Checked by ClamAV on apache.org --047d7b621ee6993ac304cf90acff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 preventDefault() if my data isn't valid, which prevents the session to be terminated. On 28 November 2012 16:18, Carol Frampton 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? > --=20 Jo=E3o Fernandes --047d7b621ee6993ac304cf90acff--