Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8166 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    164
    Vote Rating
    0
    vladsch is on a distinguished road

      0  

    Default Grid raises an error if there is second grid with summary feature

    Grid raises an error if there is second grid with summary feature


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.2 beta

    Browser versions tested against:
    • IE9
    • Chrome

    DOCTYPE tested against:
    • <!DOCTYPE>

    Description:
    • If we render two grids and second grid has summary feature then first grid raises an error

    Steps to reproduce the problem:
    • Run the test sample and see errors in console

    The result that was expected:
    • No errors

    The result that occurs instead:
    • Errors occur

    Test Case:

    Code:
    <!DOCTYPE>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1">
        <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 () {
    			Ext.create("Ext.panel.Panel", {
    				renderTo: document.body,
    				items: [{
    					xtype: "grid",
    					title: "Grid1",
    					store: {
    						fields: [{
    							name: "CliRagSoc"
    						}],
    						autoLoad: true,
    						proxy: {
    							data: [
    								["Pippo"],
    								["Pluto"]
    							],
    							type: 'memory',
    							reader: {
    								"type": "array"
    							}
    						}
    					},
    
    					columns: [{
    						dataIndex: "CliRagSoc"
    					}]
    				}, {
    					xtype: "grid",
    					title: "Grid2",
    
    					store: {
    						"fields": [{
    							"name": "ProDetTotOre"
    						}]
    					},
    
    					columns: [{
    						dataIndex: "ProDetTotOre",
    						summaryType: "sum"
    					}],
    					features: [Ext.create("Ext.grid.feature.Summary", {
    						ftype: "summary"
    					})]
    				}]
    			});
    		});
        </script>
    </head>
    <body>    
    </body>
    </html>


    HELPFUL INFORMATION

    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
    37,404
    Vote Rating
    850
    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