Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / grid / from-markup.js
1 /*!
2  * Ext JS Library 3.2.0
3  * Copyright(c) 2006-2010 Ext JS, Inc.
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 Ext.onReady(function(){
8     var btn = Ext.get("create-grid");
9     btn.on("click", function(){
10         btn.dom.disabled = true;
11         
12         // create the grid
13         var grid = new Ext.ux.grid.TableGrid("the-table", {
14             stripeRows: true // stripe alternate rows
15         });
16         grid.render();
17     }, false, {
18         single: true
19     }); // run once
20 });