Range Selection #294
-
How can i select multiple cells (range selection) ? Thanks :) |
Beta Was this translation helpful? Give feedback.
Answered by
ghiscoding
Feb 7, 2024
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ghiscoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please ask these questions on Stack Overflow
You can see the SlickRange in a live demo of Slickgrid-Universal Example 19