Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stSelectRow doesn't work with ajax datasource #390

Closed
fastwit opened this issue Apr 29, 2015 · 0 comments
Closed

stSelectRow doesn't work with ajax datasource #390

fastwit opened this issue Apr 29, 2015 · 0 comments
Labels

Comments

@fastwit
Copy link

fastwit commented Apr 29, 2015

the issue appears in the following code, safeCopy is an empty array when stPipe is used

 this.select = function select(row, mode) {
      var rows = safeCopy;
      var index = rows.indexOf(row);
      if (index !== -1) {
        if (mode === 'single') {
          row.isSelected = row.isSelected !== true;
          if (lastSelected) {
            lastSelected.isSelected = false;
          }
          lastSelected = row.isSelected === true ? row : undefined;
        } else {
          rows[index].isSelected = !rows[index].isSelected;
        }
      }
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants