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 <joshtynj...@gmail.com> 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" <kamck...@gmail.com> 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. >