tangix
27 Nov 2011, 1:38 AM
(Hope this message gets through the spam noise on the forum...)
This is with ExtJS 4.0.7 running in Firefox 8.0. Amazingly enough IE9/IE8 works as expected (definitely a first for me)! :-?
I have a GridPanel connected to a Store that I load from the remote server using JSON. The JSON contains the "success" and "results" (root property from the Store reader). All is well and data loads into the GridPanel. I have a function to select a country and then instructs the Store to .load() based on this setting to show the results in the GridPanel.
All works until I select a country that has no data, so the server returns an empty results array in the JSON:
{"success":true,"results":[]}
The GridPanel clears showing no records - no problem here.
The problem is then when I select a country with records again - the store loads and the GridPanel populates - BUT vertical scrolling no longer works! The only way to fix this problem is to refresh the page thus reinitializing the Sencha UI.
Is this a bug or is the server responding in the wrong way when there are no records to return?!?
Thanks,
/Mattias
This is with ExtJS 4.0.7 running in Firefox 8.0. Amazingly enough IE9/IE8 works as expected (definitely a first for me)! :-?
I have a GridPanel connected to a Store that I load from the remote server using JSON. The JSON contains the "success" and "results" (root property from the Store reader). All is well and data loads into the GridPanel. I have a function to select a country and then instructs the Store to .load() based on this setting to show the results in the GridPanel.
All works until I select a country that has no data, so the server returns an empty results array in the JSON:
{"success":true,"results":[]}
The GridPanel clears showing no records - no problem here.
The problem is then when I select a country with records again - the store loads and the GridPanel populates - BUT vertical scrolling no longer works! The only way to fix this problem is to refresh the page thus reinitializing the Sencha UI.
Is this a bug or is the server responding in the wrong way when there are no records to return?!?
Thanks,
/Mattias