Check documentation for the latest version of dhtmlxSuite getSelectedBlock DHTMLX Docs

getSelectedBlock

returns the attributes of the current block selection

object getSelectedBlock();
objectthe attributes of the current block selection

Example

var top_row=myGrid.getSelectedBlock().LeftTopRow;
var bottom_row=myGrid.getSelectedBlock().RightBottomRow;
var left_column=myGrid.getSelectedBlock().LeftTopCol;
var right_column=myGrid.getSelectedBlock().RightBottomCol;

Details

returns an object with four properties:

  • LeftTopRow: the index of the top row in the selected block,
  • LeftTopCol: the index of the first column in the selected block,
  • RightBottomRow: the index of the bottom row in the selected block,
  • RightBottomCol: the index of the last column in the selected block describing the boundary elements of the block
Back to top