1
如何顯示「 - 」代替空值的網格面板 代碼這裏 -如何顯示「 - 」代替空值的網格面板
var store = Ext.getStore('someStore');
store.each(function (rec) {
if(rec.get('comment')=="") {
//what code i will write here to edit that cell with '-'
}
});
爲什麼不使用值而不是record.get('comment')? – 2013-04-03 06:34:26
同意,這是更好的解決方案。我只是使用OP的示例代碼。 –