1
Ich versuche, Zeile aus einem Raster zu löschen. Dafür muss ich streiten. Ich benutze AddCls, aber es unterstützt nicht in Extjs 3. Was ist die alternative Möglichkeit, das zu tun.Wie verwendet man addCls() in extjs 3.2
{
xtype: 'button',
text: 'Delete',
handler : function(){
var cogrid = Ext.getCmp('HART_GRID');
var costore = cohartgrid.getStore();
var record = Ext.getCmp('HART_GRID').getSelectionModel().getSelected();
if (record) {
Ext.fly(row).addCls('row-deleted');// This line is throwing error.
}
if(record.data.Excl == "No"){
cohartstore.remove(record);
}
} }
Dank es funktioniert. – David