1

私の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'));
4

2 に答える 2

0

yourGrid.selection.deselectAll();次のページを表示する前に a を行う必要があります。

編集:

この質問の一部はここでも議論されました:

ページネーション dojo EnhancedGrid で関数を呼び出すことができません

于 2013-04-12T13:42:53.813 に答える