The first problem I noticed is that if I use a Grid with a BufferedStore and I move the scroll bar around to different parts of the data, I will occasionally get uncaught errors, typically things like "Cannot read property 'isNonData' of undefined", "Cannot read property 'childrenArray' of undefined" and "PageMap asked for a range which it does not have". All of these errors are demonstrable from this Fiddle (which is based on the Grid with BufferedStore example from the Sencha Examples page):
The way to get this to happen is to launch the fiddle. Once the page loads, bring up a debug window so you can watch the console. Slide the scroll bar to places outside of the current page. Sometimes you have to move it a few different times, but you will invariably see these error message pop up and scroll by. The data content does seem to eventually load, but I don't like seeing errors.
The second problem I noticed with this release is a problem with filtering Grids using a BufferedStore. The problem happens when you scroll to a new area of the data and then apply a filter. In my testing, the filter will complete, but the page will be blank. The only way I've been able to see results is if my grid is scrolled to the first page before applying the filter. This is also demonstrable from the fiddle given above. Launch the fiddle and then scroll down quite a bit. Create a filter on the 'Reponses' column (for example). I used a value of < 3. When the filter applied, no values appeared in the grid. I then reloaded the fiddle and did the same filter, but from the start of the records (nothing scrolled). I ended up getting quite a few results displayed.
I certainly hope that these problems can be fixed soon as it is preventing us from upgrading our application from Ext JS 4.2 to Ext JS 5.1.
Thanks.
Jim
Filtering Display Problem with Grid/Buffered Store in Ext JS 5.1
Aucun commentaire:
Enregistrer un commentaire