source: trunk/web/addons/job_monarch/lib/extjs/examples/grid/custom-grid.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 795 bytes
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9Ext.onReady(function(){
10    var propsGrid = new Ext.grid.PropertyGrid({
11        el:'props-grid',
12        nameText: 'Properties Grid',
13        width:300,
14        autoHeight:true,
15        viewConfig : {
16            forceFit:true,
17            scrollOffset:2 // the grid will never have scrollbars
18        }
19    });
20
21    propsGrid.render();
22
23    propsGrid.setSource({
24        "(name)": "Properties Grid",
25        "grouping": false,
26        "autoFitColumns": true,
27        "productionQuality": false,
28        "created": new Date(Date.parse('10/15/2006')),
29        "tested": false,
30        "version": .01,
31        "borderWidth": 1
32    });
33});
Note: See TracBrowser for help on using the repository browser.