Value edited in TextInput gets collapsed while scrolling which is used as itemRenderer in DataGrid?

I suspect that the itemRenderers will be re-used for the other rows while scrolling. How to retain the edited value in textinput Correct the whole purpose of an itemRenderer is that it is reused as yous scroll through a list based class. Instead of rendering all hundreds of items in your class, it will just renderer the 4-10 (or whatever) you are displaying; and re-use those DisplayObject as you scroll through Your code looks like you are adding a new TextInput to a single itemRenderer, but it is hard to tell.

You forgot to include a link to your app How to retain the edited value in textinput? Usually you store the value in the object's dataProvider; not change it based on some external event. So, when in your "onItemSelect" method, you would add an item to the 2nd DataGrid's data, which will in turn create a newRenderer, which should be able to "create itself" via the data property of that renderer.

I suspect that the itemRenderers will be re-used for the other rows while scrolling. How to retain the edited value in textinput Correct the whole purpose of an itemRenderer is that it is reused as yous scroll through a list based class. Instead of rendering all hundreds of items in your class, it will just renderer the 4-10 (or whatever) you are displaying; and re-use those DisplayObject as you scroll through.

Your code looks like you are adding a new TextInput to a single itemRenderer, but it is hard to tell. You forgot to include a link to your app. How to retain the edited value in textinput?

Usually you store the value in the object's dataProvider; not change it based on some external event. So, when in your "onItemSelect" method, you would add an item to the 2nd DataGrid's data, which will in turn create a newRenderer, which should be able to "create itself" via the data property of that renderer.

I have modified the set data method in TextInputRenderer. As to display the edited text. – Eswaran Mar 28 at 9:33 @Eswaran And did that solve your problem?

Or help solve your problem? – URL1 Mar 28 at 11:47 It solved the problem. – Eswaran Mar 28 at 11:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions