Roo/ViewPanel.js
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 07:33:14 +0000 (15:33 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 07:33:14 +0000 (15:33 +0800)
Roo/ViewPanel.js

index d36ede3..cebed62 100644 (file)
@@ -19,8 +19,8 @@
  * @param {Object} dataSource The data model to bind to
  * @param {Object} colModel The column model with info about this grid's columns
  */
-Roo.grid.EditorGrid = function(container, config){
-    Roo.grid.EditorGrid.superclass.constructor.call(this, container, config);
+Roo.grid.ViewPanel = function(container, config){
+    Roo.grid.ViewPanel.superclass.constructor.call(this, container, config);
     this.getGridEl().addClass("xedit-grid");
 
     if(!this.selModel){
@@ -82,4 +82,9 @@ Roo.grid.EditorGrid = function(container, config){
        });
     this.on("bodyscroll", this.stopEditing,  this);
     this.on(this.clicksToEdit == 1 ? "cellclick" : "celldblclick", this.onCellDblClick,  this);
-};
\ No newline at end of file
+};
+
+
+Roo.extend(Roo.grid.ViewPanel, Roo.grid.Grid, {
+    
+});
\ No newline at end of file