我使用EnhancedGrid 的indirectSelection 插件来实现一个表。表格中有一列复选框。
用户可以选中复选框并通过单击页面上的按钮来执行某些操作。
但是当用户使用EnhancedGrid 的indirectSelection 插件返回主页面时,该复选框仍处于选中状态。
您能否告诉我如何使用 EnhancedGrid 的indirectSelection 插件刷新 UI,并确保当用户单击链接返回主页时未选中任何复选框?
var mygrid = new dojox.grid.EnhancedGrid({
id: "id",
store: store,
autowidth:"true",
rowselector:"15px",
plugins: {indirectSelection: {headerSelector:true, width:"80px", styles:"text-align: center;"}},
keepRows: "30",
rowsPerPage: "10",
style:"height:300px",
structure: layout},"mygridContainer");
mygrid.startup();
dojo.connect(mygrid, "onApplyEdit", function(row){
store.save();
});