You found a bug! We've classified it as EXTJS-8561 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    160
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default [4.2.0 beta2] Store with buffered:true but without pageSize - grid is empty

    [4.2.0 beta2] Store with buffered:true but without pageSize - grid is empty


    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 define buffered:true for store but pageSize is not defined then grid is empty (data is local)

    Steps to reproduce the problem:
    • Run the following test case, notice that grid is empty
    • Click on column header for sorting, data appears in the grid

    The result that was expected:
    • Grid should be with data initially

    The result that occurs instead:
    • Grid is empty

    Test Case:

    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 = 0; i < 500; i++) {
    				data.push({company: "Company " + i});
    			}
    			
    			Ext.create("Ext.grid.Panel", {
    				store: {
    					fields: [{
    						name: "company"
    					}],
    					autoLoad: true,
    					buffered: true,					
    					proxy: {
    						data: data,
    						type: 'memory'
    					}
    				},
    				width: 650,
    				height: 350,
    				renderTo: document.body,				
    				title: "Sample Grid",
    				columns: [{
    						width: 50,
    						xtype: "rownumberer"
    					}, {
    						id: "Column1",
    						flex: 1,
    						dataIndex: "company",
    						text: "Company"
    					}]						
    			});
    		});
        </script>
    	
    </head>
    <body>
    </body>
    </html>
    Operating System:
    • Win7
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1