Roo/grid/EditorGrid.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 06:54:24 +0000 (14:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 06:54:24 +0000 (14:54 +0800)
Roo/grid/EditorGrid.js

index 5374778..d3c2ee2 100644 (file)
@@ -203,5 +203,15 @@ Roo.extend(Roo.grid.EditorGrid, Roo.grid.Grid, {
             this.activeEditor.completeEdit();
         }
         this.activeEditor = null;
+    },
+       
+        /**
+     * Called to get grid's drag proxy text, by default returns this.ddText.
+     * @return {String}
+     */
+    getDragDropText : function(){
+        var count = this.selModel.getSelectedCell() ? 1 : 0;
+        return String.format(this.ddText, count, count == 1 ? '' : 's');
     }
+       
 });
\ No newline at end of file