Skip to content

Range Selection #294

Answered by ghiscoding
Pratosh22 asked this question in Q&A
Discussion options

You must be logged in to vote

Please ask these questions on Stack Overflow

function buttonClick() {
  const cellSelectionModel = this.reactGrid.slickGrid!.getSelectionModel();
  const range = new SlickRange(3, 3, 5, 4);
  cellSelectionModel?.setSelectedRanges([range]);

  // or
  cellSelectionModel?.setSelectedRanges([{ fromRow: 3, fromCell: 3, toRow: 5, toCell: 4 } as SlickRange]);
}

You can see the SlickRange in a live demo of Slickgrid-Universal Example 19

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghiscoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants