custom-grid.js 745 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Ext JS Library 2.0 Copyright(c) 2006-2007, Ext JS, LLC. licensing@extjs.com
  3. *
  4. * http://extjs.com/license
  5. */
  6. Ext.onReady(function() {
  7. var propsGrid = new Ext.grid.PropertyGrid({
  8. el : 'props-grid',
  9. nameText : 'Properties Grid',
  10. width : 300,
  11. autoHeight : true,
  12. viewConfig : {
  13. forceFit : true,
  14. scrollOffset : 2
  15. // the grid will never have scrollbars
  16. }
  17. });
  18. propsGrid.render();
  19. propsGrid.setSource({
  20. "(name)" : "Properties Grid",
  21. "grouping" : false,
  22. "autoFitColumns" : true,
  23. "productionQuality" : false,
  24. "created" : new Date(Date.parse('10/15/2006')),
  25. "tested" : false,
  26. "version" : .01,
  27. "borderWidth" : 1
  28. });
  29. });