3 * Copyright(c) 2006-2009 Ext JS, LLC
5 * http://www.extjs.com/license
7 Ext.onReady(function(){
\r
9 var propsGrid = new Ext.grid.PropertyGrid({
\r
10 renderTo: 'prop-grid',
\r
15 borderWidth: 'Border Width'
\r
18 '(name)': 'Properties Grid',
\r
20 autoFitColumns: true,
\r
21 productionQuality: false,
\r
22 created: new Date(Date.parse('10/15/2006')),
\r
29 scrollOffset: 2 // the grid will never have scrollbars
\r
33 // simulate updating the grid data via a button click
\r
35 renderTo: 'button-container',
\r
36 text: 'Update source',
\r
37 handler: function(){
\r
38 propsGrid.setSource({
\r
39 '(name)': 'Property Grid',
\r
41 autoFitColumns: true,
\r
42 productionQuality: true,
\r
43 created: new Date(),
\r