-
7 Feb 2013 1:21 PM #1
[4.2.0 beta 2] Buffered store, repeating rows for remote data
[4.2.0 beta 2] Buffered store, repeating rows for remote data
REQUIRED INFORMATION
Ext version tested:- Ext 4.2.0 beta 2
Browser versions tested against:- IE9
- Chrome 24
DOCTYPE tested against:- <!DOCTYPE html>
Description:- If use buffered store with ajax proxy then rows start repeating during scrolling
Steps to reproduce the problem:- Open the following test case (in this sample I used memory proxy with deffered reading)
- Start scrolling
- Notice row number and company index don't match after a row with index 100
- If use bufferedrenderer plugin instead buffered store's option then all works fine
The result that was expected:- Grid should display data correctly
The result that occurs instead:- Incorrect data representation
Test Case:
Operating System:Code:<!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" /> <script type="text/javascript" src="../../ext-all.js"></script> <script type="text/javascript"> Ext.onReady(function () { var data = []; for (var i = 1; i <= 500; i++) { data.push({company: "Company " + i}); } Ext.create("Ext.grid.Panel", { store: { fields: [{ name: "company" }], autoLoad: true, proxy: { type: "memory", data : data, read : function () { Ext.defer(Ext.data.proxy.Memory.prototype.read, 1000, this, arguments); } }, buffered: true, pageSize: 100 }, height: 350, renderTo: document.body, width: 650, title: "Sample Grid", columns: [{ width: 50, xtype: "rownumberer" }, { id: "Column1", flex: 1, dataIndex: "company", text: "Company" }] }); }); </script> </head> <body> </body> </html>- Win7
-
7 Feb 2013 1:33 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
So if I change it to use an ajax proxy instead of the memory in your example I will see the same issue where row 101 will be the same as row 1?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
7 Feb 2013 1:36 PM #3
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote