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 9499CE8DF for ; Wed, 28 Nov 2012 16:54:39 +0000 (UTC) Received: (qmail 15825 invoked by uid 500); 28 Nov 2012 16:54:38 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 15725 invoked by uid 500); 28 Nov 2012 16:54:38 -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 15698 invoked by uid 99); 28 Nov 2012 16:54:37 -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:54:37 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cframpto@adobe.com designates 64.18.1.237 as permitted sender) Received: from [64.18.1.237] (HELO exprod6og121.obsmtp.com) (64.18.1.237) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 16:54:28 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob121.postini.com ([64.18.5.12]) with SMTP ID DSNKULZBrnlvMMJRdgjqdKsSTyWyJhyb2bp2@postini.com; Wed, 28 Nov 2012 08:54:07 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qASGs5HP022446 for ; Wed, 28 Nov 2012 08:54:05 -0800 (PST) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id qASGs4XL005056 for ; Wed, 28 Nov 2012 08:54:04 -0800 (PST) Received: from nambx09.corp.adobe.com ([10.8.189.47]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Wed, 28 Nov 2012 08:54:04 -0800 From: Carol Frampton To: "flex-dev@incubator.apache.org" Date: Wed, 28 Nov 2012 08:54:01 -0800 Subject: Re: Spark Datagrid editor session ending Thread-Topic: Spark Datagrid editor session ending Thread-Index: Ac3NiPj86HfqzvcPTJGlZMNTKOjT6g== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.4.120824 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I think you override IGridItemEditor save() to do what you want. Carol On 11/28/12 11 :29AM, "Jo=E3o Fernandes" 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 >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