X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..76cb34406ceaf9681a76e13b531d7eafa483ad88:/examples/grid/array-grid.js diff --git a/examples/grid/array-grid.js b/examples/grid/array-grid.js index a81d3b80..1d9c0654 100644 --- a/examples/grid/array-grid.js +++ b/examples/grid/array-grid.js @@ -1,17 +1,15 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ Ext.onReady(function(){ // NOTE: This is an example showing simple state management. During development, // it is generally best to disable state management as dynamically-generated ids // can change across page loads, leading to unpredictable results. The developer - // should ensure that stable state ids are set for stateful components in real apps. + // should ensure that stable state ids are set for stateful components in real apps. Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var myData = [ @@ -42,7 +40,7 @@ Ext.onReady(function(){ ['The Home Depot, Inc.',34.64,0.35,1.02,'9/1 12:00am'], ['The Procter & Gamble Company',61.91,0.01,0.02,'9/1 12:00am'], ['United Technologies Corporation',63.26,0.55,0.88,'9/1 12:00am'], - ['Verizon Communications',35.57,0.39,1.11,'9/1 12:00am'], + ['Verizon Communications',35.57,0.39,1.11,'9/1 12:00am'], ['Wal-Mart Stores, Inc.',45.45,0.73,1.63,'9/1 12:00am'] ]; @@ -67,7 +65,7 @@ Ext.onReady(function(){ } // create the data store - var store = new Ext.data.SimpleStore({ + var store = new Ext.data.ArrayStore({ fields: [ {name: 'company'}, {name: 'price', type: 'float'}, @@ -94,6 +92,5 @@ Ext.onReady(function(){ width:600, title:'Array Grid' }); - grid.render('grid-example'); }); \ No newline at end of file