ASP.NET Core MVC Controls | ComponentOne
In This Topic
    HitTestInfo Class
    In This Topic
    File
    wijmo.grid.js
    Module
    wijmo.grid

    Contains information about the part of a FlexGrid control at a given position on the page.

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(grid: any, pt: any): HitTestInfo
    

    Initializes a new instance of the HitTestInfo class.

    Parameters
    • grid: any

      The FlexGrid control, GridPanel, or cell element to investigate.

    • pt: any

      The Point object in page coordinates to investigate.

    Returns
    HitTestInfo

    Properties

    cellType

    Gets the type of cell found at the specified position.

    Type
    CellType

    col

    Gets the index of the column at the specified position.

    To get the Column object, use the getColumn method.

    Type
    number

    edgeBottom

    Gets a value that indicates whether the mouse is near the bottom edge of the cell.

    Type
    boolean

    edgeFarBottom

    Gets a value that indicates whether the mouse is very near the bottom edge of the cell.

    Type
    boolean

    edgeFarRight

    Gets a value that indicates whether the mouse is very near the right edge of the cell.

    Type
    boolean

    edgeLeft

    Gets a value that indicates whether the mouse is near the left edge of the cell.

    Type
    boolean

    edgeRight

    Gets a value that indicates whether the mouse is near the right edge of the cell.

    Type
    boolean

    edgeTop

    Gets a value that indicates whether the mouse is near the top edge of the cell.

    Type
    boolean

    grid

    Gets the FlexGrid that this HitTestInfo refers to.

    Type
    FlexGrid

    panel

    Gets the GridPanel that this HitTestInfo refers to.

    Type
    GridPanel

    point

    Gets the point in control coordinates that this HitTestInfo refers to.

    Type
    Point

    range

    Gets the cell range at the specified position.

    Type
    CellRange

    row

    Gets the index of the row at the specified position.

    To get the Row object, use the getRow method.

    Type
    number

    target

    Gets the target element used to create this HitTestInfo.

    Type
    Element

    Methods

    getColumn

    getColumn(binding?: boolean): Column
    

    Gets the Column object at the specified position.

    To get the column index, use the col property.

    Parameters
    Optional

    Whether to get the column by index or by binding. This parameter only makes a difference in grids that have multiple rows per data item (like the MultiRow grid).

    Returns
    Column

    getRow

    getRow(): Row
    

    Gets the Row object object at the specified position.

    To get the row index, use the row property.

    Returns
    Row