title: How to define view in Ext.grid.panel
body: <p>I want to modify view of the grid and i started from base (i.e before i define my own view). But some how i am not even able to assign object to view property.
  Please, anybody have any idea how to create view?? I tried following.</p>
  
  <p>Example would be great.</p>
  
  <pre><code>var viewConfig = {emptyText: "My msg",stripeRows: false};
  
  this.grid = Ext.create('Ext.grid.Panel', {
              id: "t-"+this.gridName+"-grid",
              header: true,
              title: gridTitle,
              border: false,
              store: store,            
              columns: cm,
              selModel: sm,
              loadMask: true,
              //viewConfig: viewConfig, // works fine
              //view: new Ext.view.Table() ,//Ext.grid.View(),//Ext.grid.View(viewConfig ),
              provider: this.page.provider
          });
  </code></pre>
  
  <p>If i de-comment "view: new Ext.view.Table()" line then it raise error and stops everything.
  I keep commented and after grid creation, i can access view with this.grid.getView() property. But how to create own view object (where i can assign custom Templates)???</p>
  
  <p>Many thanks.</p>