Hi,
I'm having some trouble updating a grouped list with JSON data.
I have a store with some data that I initially display in the List. It displays fine, and shows the correct grouping.
Then I get data through a JSONP request and do update on the list. The list shows blank rows for as many rows in the JSON data. If I set grouping to false, then the JSON data gets displayed fine in the list.
Here's my code.

Also, I noticed that the store.getCount() before and after the List.update(data) returns the original count, and not the rows that are part of the data.
Any idea what I need to do to fix this?
Thanks,
Sam

evant

13 Sep 2010, 3:32 PM

You never update the store, so obviously the store count is never going to change!

samuelp

13 Sep 2010, 3:53 PM

That was easy!
I changed
List.update(data);
to
store.loadData(data,false);

Now the data gets shown properly in the grouped list after the JSON query.
Thanks,
Sam