Skip to content

Commit

Permalink
refreshIndex should be always run
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Mar 30, 2016
1 parent fda9fd3 commit ff0863a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/grid.import.js
Expand Up @@ -160,10 +160,12 @@ $.extend($.jgrid,{
grid.jqGrid('navSeparatorAdd', ret.navButtons[b][0], ret.navButtons[b][1]);
} else {
grid.jqGrid('navButtonAdd', ret.navButtons[b][0], ret.navButtons[b][1]);
}
}
}
}
}
// refresh index
grid[0].refreshIndex();
// subgrid
if(ret.subGrid) {
var ms = ret.multiselect === 1 ? 1 : 0,
Expand All @@ -176,7 +178,6 @@ $.extend($.jgrid,{
expCol = ret.expColInd,
isLeaf = ret.treeReader.leaf_field,
expanded = ret.treeReader.expanded_field;
grid[0].refreshIndex();
// optimization of code needed here
while(i<len) {
$(grid[0].rows[i].cells[expCol])
Expand Down

0 comments on commit ff0863a

Please sign in to comment.