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=myTreeGrid.getSelectedBlock().LeftTopRow;
var bottom_row=myTreeGrid.getSelectedBlock().RightBottomRow;
var left_column=myTreeGrid.getSelectedBlock().LeftTopCol;
var right_column=myTreeGrid.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