Skip to content

Commit

Permalink
Bug fix in reorderSelectedColumns used in columnChooser
Browse files Browse the repository at this point in the history
See #261 for more details.
  • Loading branch information
OlegKi committed Nov 5, 2016
1 parent c946521 commit e3a36e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/grid.jqueryui.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
// both belongs no header group then the column could be NOT in
// selectedList. I find better to insert the item AFTER the hidden
// or non-movable columns (like "rn", "subgrid" column or other)
while (iCol >= 0 && !p.colModel[iCol].hidden && p.colModel[iCol].hidedlg &&
while (iCol >= 0 && iCol < p.colModel.length &&
!p.colModel[iCol].hidden && !p.colModel[iCol].hidedlg &&
//inGroup[iCol] !== undefined && inGroup[iColItem] !== undefined &&
inGroup[iCol] === inGroup[iColItem]) {
iCol++;
Expand Down

0 comments on commit e3a36e9

Please sign in to comment.