A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/selection/selection_isselectedcell_method/ below:

Website Navigation


JavaScript Grid - isSelectedCell Method

isSelectedCell()

checks whether the cell with the specified row and column parameters is selected

isSelectedCell(row: IRow | Id, column?: ICol | Id): boolean;

Parameters: Returns:

Returns true if the cell is selected, otherwise false

Example

const grid = new dhx.Grid("grid_container", {
columns: [
// columns config
],
selection:"cell",
multiselection: false,
data: dataset
});

const row = grid.data.getItem(grid.data.getId(0));
const column = grid.getColumn("project");
grid.selection.setCell(row,column);

const selectedCell = grid.selection.isSelectedCell(row,column);
console.log(selectedCell); // -> true
Change log:

added in v9.2


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4