This content has been marked as final. Show 4 replies
What is your dataProvider? If it is a collection (and that would be preferrable), then maybe call the refresh() method on the collection?
This doesn't solve my problem, my list is an ArrayCollection and it doesn't work even if i call it from the timer.
The real problem is: the list is ok, it's populated right, but tha datagrid doesn't refresh till i add or remove an item from the list, what could possibly be causing this error?
Have you tried a datagrid.validateNow() after the refresh to see if that does anything?
"tech_holic" <firstname.lastname@example.org> wrote in message
> I'm in trouble here with DataGrid, i have an implementation where a public
> bindable property of a custom component is used binded as the dataProvider
> a Datagrid inside this component, but, when i change this property and
> tell my ViewStack to jump over to that component, the DataGrid sometimes
> doesn't get refreshed with the right data. I tested if the dataProvider is
> right and it is, and when i just push (meaning .push(item:*)) an item in
> list, the DataGrid shows correctly. problem is, i must show data without
> to push an item, so i work-arounded it with a timer implementation that
> and deletes an empty value, what's by the way terrible.
> I went to JIRA trying to see what's been made on this, but all related
> are told to be historical and shows no information at all.
> Am i doing something wrong? or it's a bug no one talks about?
If you use .push into the internal Array of an ArrayCollection, then it's
not going to generate any of the events that ArrayCollection uses if you use
its official API (addItem/removeItem).
I suspect that what you're doing is replacing the ArrayCollection when you
populate it rather than just adding or removing.