width : 150,
renderer : function(v,x,r) {
- return String.format('{0}', v);
+ var u = r.data.use * 1;
+ u += (r.data.use_ex*1);
+
+ return String.format('{0}', u ? v : '');
},
editor : {
xtype: 'GridEditor',
_this.grid.ds.each(function(r) {
if (r.data.use*1) {
- ret.cols.title = r.data.title;
- ret.cols.push(r.json);
+
+ var d = Roo.apply({}, r.json);
+ Roo.apply(d, r.data);
+ ret.cols.push(d);
}
if (r.data.use_ex*1) {
return;
}
Roo.log(ret);
+
+ _this.dialog.hide();
_this.callback(ret);
- _this.dialog.hide();
+
}
},