Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AE304200BA6 for ; Tue, 18 Oct 2016 17:57:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACF46160ACE; Tue, 18 Oct 2016 15:57:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A11BE160AE5 for ; Tue, 18 Oct 2016 17:57:53 +0200 (CEST) Received: (qmail 13449 invoked by uid 500); 18 Oct 2016 15:57:52 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 13282 invoked by uid 99); 18 Oct 2016 15:57:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 15:57:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E91B2C23D4 for ; Tue, 18 Oct 2016 15:57:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dgr9ACmww8r2 for ; Tue, 18 Oct 2016 15:57:51 +0000 (UTC) Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C3BDC5F24F for ; Tue, 18 Oct 2016 15:57:50 +0000 (UTC) Received: by mail-yw0-f169.google.com with SMTP id t192so143270648ywf.0 for ; Tue, 18 Oct 2016 08:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WpG1pf1iI6tM5MvcG35hPIjib1Q/NQx5PM5ugPuvc0U=; b=J4LKZcF/KgYdVuKtrZG6/nhxT5bIIK0wT18Z7fOg3SShmO4Net/Y5LRJ2KmnL2W03b 1wA+lmTViIbWw5fw3sbbRUNKJIFxXCIdJEj2YaYWEKg9WoGzSUf7ZOk3Zl5NI+P46Wzy C/eI3Z8ERUDw5f/jLc9ETEN+4b9XONLJGSMJ/hKgQ9iYFThNYOcqWOY/oPAJH5WzcwCP QGfFGDeu7PtWYEro6zUUxcLjSZMdv/ECe1c5QY1F//JBtqN3hgIavOPG9MSiOxfbpO7j uW+UzrpNkVY1Nc9PxxZCVoP5+/0d5bBtKF6ZZgLxi7eomSCudSlOltU48eeM30rgXk47 3FLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WpG1pf1iI6tM5MvcG35hPIjib1Q/NQx5PM5ugPuvc0U=; b=da8xFu2Ms8Z8YAx5ylA3VV1ER+8J5CcnScAQrYc+qeGhaMzQ5zHTanjfwVRy/9STPy wBSECTWqpJdXnsTK7HWa8yDpzNkT2zKfArcgdaU86tI5SMhWIHwIFs7l48+l37uvtK9Z 8c8duEY6t9sFHBKPImK7lsCa/CXizcm2aSTiluXIDtc+FcOi2Biskgm5JLWDCr0CCFtc B5f9kvgpaqQMOxLqnlxKr0Rf+M59stdCwSyxoxdeMaOu8waR7VfO7+MAF/heT3I00BQb Tv4+75BpPeZyGIVOI6HTQq1b95HqLw/A6lvGBEdRN3kzM+cciKVCtHXAMNZzHlFC+G2a 7N2w== X-Gm-Message-State: AA6/9Rk/PlZZ1tLSHBhW9I6/DgoIDo0IetBqMGE4yguUWJYT3pneBClM5j9IrMwCvnPoW0LO2P8Azf+nFTDXpA== X-Received: by 10.129.97.69 with SMTP id v66mr1472222ywb.216.1476806268087; Tue, 18 Oct 2016 08:57:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: mark goldin Date: Tue, 18 Oct 2016 15:57:37 +0000 Message-ID: Subject: Re: disableAutoUpdate To: users@flex.apache.org Content-Type: multipart/alternative; boundary=001a11492ce402f243053f25c186 archived-at: Tue, 18 Oct 2016 15:57:54 -0000 --001a11492ce402f243053f25c186 Content-Type: text/plain; charset=UTF-8 Unfortunately, my sort is a column header click with a sortfunction. On Tue, Oct 18, 2016 at 10:55 AM Clint M wrote: > var ac:ArrayCollection = grid.dataProvider as ArrayCollection > if(ac) { > ac.disableAutoUpdate(); > ac.sort = new Sort(); > ac.sort.fields = ["name"]; > ac.refresh(); > ac.enableAutoUpdate(); > } > > On Tue, Oct 18, 2016 at 8:47 AM, mark goldin > wrote: > > > But how am I going to know that a sort is done and I can enable it? > > > > On Tue, Oct 18, 2016 at 10:42 AM Clint M wrote: > > > > > ya... with enableAutoUpdate() > > > > > > On Tue, Oct 18, 2016 at 8:36 AM, mark goldin > > > wrote: > > > > > > > when I sort on some columns I > > > > do ArrayCollection(gird.dataProvider).disableAutoUpdate();. Should I > > at > > > > some point enable it back? > > > > > > > > Thanks > > > > > > > > > > --001a11492ce402f243053f25c186--