私のdojo dataGridでは、たとえば最初のページで7行目と8行目を選択し、ページネーション機能を使用して2ページ目に移動した場合。行 (最初のページで選択された 7 行目と 8 行目) は、2 ページ目でもデフォルトで選択されます。これが私のグリッドです:
var grid = new dojox.grid.EnhancedGrid({
id: 'linesGrid',
style: 'width:950px;height:250px;',
store: store,
structure: layout,
rowSelector: '20px',
plugins: {
indirectSelection: {headerSelector:true, width:"40px", styles:"text-align: center;"},
pagination: {
pageSizes: ["25", "50", "100", "All"],
description: true,
sizeSwitch: true,
pageStepper: true,
gotoButton: true,
/*page step to be displayed*/
maxPageStep: 4,
/*position of the pagination bar*/
position: "bottom"
}
}
}, document.createElement('div'));