Home > front end >  Found in easyui datagrid getSelections a small bug, how to solve?
Found in easyui datagrid getSelections a small bug, how to solve?

Time:10-03

Found in easyui datagrid getSelections a small bug, how to solve? I am using easyui1.5, first of all, I select the line 1, 2, 3, use getSelections no problem, can correct for the selected rows, and then I cancel the line 3, reoccupy getSelections, access line is 2, 3, line 1 is gone, it should be morally line is 1, 2

CodePudding user response:

I use so long was not found,
GetChecked try?

CodePudding user response:

Have this problem? You haven't set id

CodePudding user response:

Set a idFiled try!

CodePudding user response:

Breakpoint debugging!
Obviously you deselect the problem of the code here

CodePudding user response:

However, jquery easyui, besides provides the getSelections also provides clearSelections, can clear the cache before selection

CodePudding user response:

I met the problem when idField properties caused by not properly set, the idField to set up the columns listed in some value, or simply is not set, if set up a wrong value, can cause getSelections method returns is not the right question
  • Related