我在Extjs中有一個GridStore,它可以存儲具有兩個網格列的記錄。當網格中存在一條記錄時,如果我刪除了已在服務器端成功刪除的網格,但網格中仍然存在該網格,則存在問題。如何清除Extjs中的網格
示例代碼:
xtype: 'grid',
store: 'SampleStore',
border: false,
width : 542,
ref: '../sampleGrid',
id: 'sampleGrid',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'name',
header: 'Name',
sortable: true,
.............
view: new Ext.grid.GridView({
forceFit: true
})
感謝提前的幫助。
我不會在視圖中使用forceFit選項。建議在網格上使用flex。 (與您的問題無關,但是這是一個建議) – VDP