Results 1 to 2 of 2

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •