allow string based values for comboboxarray
[roojs1] / Roo / grid / ColumnModel.js
index 0b0973b..d1fa60d 100644 (file)
@@ -162,6 +162,9 @@ Roo.extend(Roo.grid.ColumnModel, Roo.util.Observable, {
     /**
      * @cfg {String} align (Optional) Set the CSS text-align property of the column.  Defaults to undefined.
      */
+    /**
+     * @cfg {String} valign (Optional) Set the CSS vertical-align property of the column (eg. middle, top, bottom etc).  Defaults to undefined.
+     */
     /**
      * @cfg {String} cursor (Optional)
      */
@@ -538,7 +541,7 @@ Roo.grid.ColumnModel.defaultRenderer = function(value)
            return " ";
        }
     
-       return String.format("{1}", value);
+       return String.format("{0}", value);
 };
 
 // Alias for backwards compatibility