title: How to show grid in window with ExtJs?
body: <p>Thare is problem in my ExtJs app.<br>
  I want to show grid in window. I says:</p>
  
  <p>Column Model:</p>
  
  <pre><code>            var markCm = new Ext.grid.ColumnModel({
              columns:[{
                  header: 'Аннотация',
                  dataIndex: 'annotation',
                  width: 230,
              },{
                  header: 'Дата',
                  dataIndex: 'mark_date',
                  width: 30
              },{
                  header: 'Статус',
                  dataIndex: 'status',
                  width: 30
              }],
              defaults: {
                  flex: 1
              }
          });
          console.log("1");
  </code></pre>
  
  <p>Grid:</p>
  
  <pre><code>            var markGrid = new Ext.grid.GridPanel({
              //store: markStore,
              cm: markCm, 
              selModel: new Ext.grid.RowSelectionModel(),
              stripeRows : true,
              //height: 400,
              //loadMask: true,
              id: 'markGrid',
              autoScroll: true,
          });
  </code></pre>
  
  <p>Window:</p>
  
  <pre><code>            console.log("2");
          var markWin = new Ext.Window({
              id: 'markWindow', 
              layout: 'fit',
              title:'Спискок маркеров',
              autoScroll:false,
              //width:600,
              items:[markGrid],
              listeners:{
              }
          });
          console.log("3");
          markWin.show();
          console.log("4");
  </code></pre>
  
  <p>And in firebug i see:</p>
  
  <pre><code>1
  2
  3
  TypeError: this.ds is undefined
  ...ng(this.enableUrlEncode)?this.enableUrlEncode:"data"]=Ext.encode(h);k.params=l}e...
  </code></pre>
  
  <p>Whats can be wrong?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I try add store like in this <a href="http://try.sencha.com/extjs/4.0.7/docs/Ext.window.Window.1/viewer.html" rel="nofollow">example</a></p>
  
  <pre><code>            var markGrid = new Ext.grid.GridPanel({
              store: Ext.create('Ext.data.ArrayStore', {}),
              cm: markCm, 
              selModel: new Ext.grid.RowSelectionModel(),
              stripeRows : true,
              //height: 400,
              //loadMask: true,
              id: 'markGrid',
              autoScroll: true,
          });
  </code></pre>
  
  <p>and get error:</p>
  
  <pre><code>1
  TypeError: d[a] is not a constructor
  ...ng(this.enableUrlEncode)?this.enableUrlEncode:"data"]=Ext.encode(h);k.params=l}e...
  </code></pre>