this.dialog = Roo.factory({
xtype: 'LayoutDialog',
xns: Roo,
+ listeners : {
+ show : function (_self)
+ {
+ _this.grid.ds.load({});
+ }
+ },
height : 500,
modal : true,
resizable : false,
xns: Roo,
listeners : {
activate : function() {
- _this.panel = this;
+ _this.panel = this;
if (_this.grid) {
- _this.grid.footer.onClick('first');
+ // _this.grid.footer.onClick('first');
}
}
},
_this.grid = this;
//_this.dialog = Pman.Dialog.FILL_IN
if (_this.panel.active) {
- this.footer.onClick('first');
+ // this.footer.onClick('first');
}
},
rowdblclick : function (_self, rowIndex, e)
if (!_this.data) {
return false;
}
- o.params = Roo.apply(o.params, {
+ o.params = Roo.apply(o.params || {}, {
person_id : _this.data.person_id,
onid : _this.data.onid,
ontable : _this.data.ontable,
]
}
},
- footer : {
- xtype: 'PagingToolbar',
- xns: Roo,
- pageSize : 25,
- displayInfo : true,
- displayMsg : "Displaying core_notify_recur{0} - {1} of {2}",
- emptyMsg : "No core_notify_recur found"
- },
toolbar : {
xtype: 'Toolbar',
xns: Roo,
width : 250,
renderer : function(v,x,r) {
+ Roo.log(x);
+ if (v.length) {
+ var cm = _this.grid.colModel;
+ Roo.log(this);
+ var ci = cm.getColumnByDataIndex(this.dataIndex);
+ Roo.log(ci);
+
+ var ce = cm.getCellEditor(ci);
+ Roo.log(ce);
+ ce.field.setValue(v);
+ return String.format('{0}',ce.field.el.value);
+
+
+
+ }
+
return String.format('{0}', r.data.freq_hour_name || v);
},
{
xtype: 'Button',
xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+ }
+ },
text : "Done"
}
]