0
dojox/grid/EnhancedGridの列を削除する方法はありますか?解決策がある場合はお知らせください。dojox/grid/EnhancedGridの列を削除する方法
私のサンプルグリッドを見つけてください。
詳細:dojox/grid/EnhancedGridを作成し、ヘッダー行のクリックに関連するアクションを持っています。列を削除するためにどのような操作を追加できますか?ここにあなたが方法
grid.setStructure(newLayout);
または
grid.set('structure',newLayout);
を使用する必要が
var dataStore = new ObjectStore({objectStore: objectStoreMemory});
// grid
grid = new EnhancedGrid({
selectable: true,
store: dataStore,
structure : [ {
name : "Country",
field : "Country",
width : "150px",
reorderable: false,
editable : true
}, {
name : "Abbreviation",
field : "Abbreviation",
width : "120px",
reorderable: false,
editable : true
}, {
name : "Capital",
field : "Capital",
width : "100%",
reorderable: false,
editable : true
} ],
rowSelector: '20px',
plugins: {
pagination: {
pageSizes: ["10", "25", "50", "100"],
description: true,
sizeSwitch: true,
pageStepper: true,
gotoButton: true,
maxPageStep: 5,
position: "bottom"
}
},
dodblclick: function() {
alert("Header clicked");
}
}, "grid");
grid.startup();
Dojo Enhancedgridでは、ほとんどのクリック・イベントが期待どおりに機能していません。この場合、削除する必要のある列を知るためにイベントをキャプチャする方法はありますか? –
詳細を教えていただけますか?多分例を持って –
ここに私の例がありますhttps://bugs.dojotoolkit.org/ticket/19093 –