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 A6983200C0D for ; Tue, 31 Jan 2017 17:06:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5496160B52; Tue, 31 Jan 2017 16:06:53 +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 EF191160B46 for ; Tue, 31 Jan 2017 17:06:52 +0100 (CET) Received: (qmail 26237 invoked by uid 500); 31 Jan 2017 16:06:47 -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 26225 invoked by uid 99); 31 Jan 2017 16:06:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2017 16:06:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 534891800B9 for ; Tue, 31 Jan 2017 16:06:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.693 X-Spam-Level: *** X-Spam-Status: No, score=3.693 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, NUMERIC_HTTP_ADDR=0.001, 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, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id iq_nNkCKyRkT for ; Tue, 31 Jan 2017 16:06:45 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 577B05F3FF for ; Tue, 31 Jan 2017 16:06:44 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id x75so240029734vke.2 for ; Tue, 31 Jan 2017 08:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=XGYKUBr3v+Ai5S5Z5cyFIrWZOmi0xwE79cieKRrcjUc=; b=gZwRvGDyi2S5XKojIrHBCNHunQpeypOSjHNVDtbro8APgm3qgmGLLB0PS2ty+1uo++ m9AD+99Yr9Qtr2IbGaZvhJ0VNcK0W+9kfaHZeWVj8OLayXzShWGeQ5XTFCx2mnjAcK3V ACFVeDbHNUq/fg5EKUiVizPpZ58yHJmn1JYW+xcZEedfIGJcGofrqCH2LPCumzFElwYY 3pOlhtYU6vLpu63QiHU8t+U73TEAIZzoHyOBnPWo/k9sxonqwuhTKtAtJcTqGFzVIVvk xnSHzdDtItR5M8eIru2EbDCh4Z7JSrBsjlbxJzhs6QjIy7Pa7EhN5Tv3kxZRTRcjw9OY 5eqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XGYKUBr3v+Ai5S5Z5cyFIrWZOmi0xwE79cieKRrcjUc=; b=gL+maVw9RO1q/jbnPF391tw38Zyu1dVEPgjuHU1CrWIox/1KhizovsLoR92x/21H9O cnJZ1QfTB16cvQ4fdkrs7Q4gyHOD/FjiRsr3uWaab0HDdI6OVLmPrea8xClH9FF0WKcc 1bb3Kuil/5LdpcxpFZ2MIUfcGURkTYC2GbDPc/++p/xp802boy6HNgmuAuzNwAA26Now F3nXUoNxieBgR6zUoacaRT9cevC4/WY8g7bJ/WhuIVHryw0P3vSCHiZFoKUG2SoKpfXU GE67YQBQed0eJZ+PfSg/DtCAkMkqz7OFI5sN84boiGDevWn88jTmt9gmAH3WsgwVE2IN xijg== X-Gm-Message-State: AIkVDXJddixUfATO1O+/iQ3P8OiHp6bg4dvguOo/TUuj1bTgQFfDgW/k3XFL32PH3TLJtp63QSiPKdT/pBCSOw== X-Received: by 10.31.166.7 with SMTP id p7mr13870807vke.136.1485878803272; Tue, 31 Jan 2017 08:06:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.138.17 with HTTP; Tue, 31 Jan 2017 08:06:42 -0800 (PST) In-Reply-To: References: <1485870640727-14588.post@n4.nabble.com> <1485871441657-14590.post@n4.nabble.com> From: Kyle McKnight Date: Tue, 31 Jan 2017 11:06:42 -0500 Message-ID: Subject: Re: TextInput in a DataGrid To: Flex Users Group Content-Type: multipart/alternative; boundary=001a1142d1223f9c770547661ed1 archived-at: Tue, 31 Jan 2017 16:06:53 -0000 --001a1142d1223f9c770547661ed1 Content-Type: text/plain; charset=UTF-8 I had thought that useVirtualLayout to false would stop it from re-using renderers. And when I set the text initially to an empty string "" then the text i entered would be registered and my totals would show up, but the text itself wouldn't show up until i pressed another key. It was jus tweird. But it is working th is way. So I suppose that's ok haha Kyle McKnight Senior UI Engineer - Accesso 602.515.1444 (M) On Tue, Jan 31, 2017 at 10:44 AM, Josh Tynjala wrote: > That sounds like the correct way to do it to me. I'm not sure that > itemUpdated() should be required, but I haven't dealt with Flex item > renderers in a while, so maybe there some quirk I've forgotten. > > Ultimately, you want to store any text or other data that is associated > with a specific item in the data provider. Item renderers get recycled, and > you need to replace text or anything else that may have been displayed > before. Flex has no way of knowing that the old text in your TextInput > should be cleared or set to a new value unless you tell it. > > - Josh > > On Jan 31, 2017 6:06 AM, "kamcknig" wrote: > > I solved it by binding the TextInput's text property to a property of the > ItemRenderer's data Object and setting that data in a change handler on the > TextInput and then calling dataProvider.itemUpdated(). > > I feel this is a bit hacky, so please, if anyone else has a way to do it, > let me know? :) > > Thanks! > Kyle > > > > -- > View this message in context: http://apache-flex-users. > 2333346.n4.nabble.com/TextInput-in-a-DataGrid-tp14588p14590.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > --001a1142d1223f9c770547661ed1--