ASP.NET MVC コントロールヘルプ
GridPanel クラス
ファイル
wijmo.grid.js
モジュール
wijmo.grid
派生クラス
FlexSheetPanel

グリッドの論理的な部分(列ヘッダ、行ヘッダ、スクロール可能なデータ部分など)を表します。

コンストラクタ

プロパティ

メソッド

コンストラクタ

constructor

constructor(g: FlexGrid, cellType: CellType, rows: RowCollection, cols: ColumnCollection, host: HTMLElement): GridPanel

GridPanelクラスの新しいインスタンスを初期化します。

パラメーター
戻り値
GridPanel

プロパティ

cellType

パネルに含まれるセルのタイプを取得します。

型
CellType

columns

パネルの列コレクションを取得します。

型
ColumnCollection

grid

パネルを所有するグリッドを取得します。

型
FlexGrid

height

このパネルに含まれる内容全体の高さを取得します。

型
number

hostElement

パネルのホスト要素を取得します。

型
HTMLElement

rows

パネルの行コレクションを取得します。

型
RowCollection

viewRange

このパネル上の現在表示されているセルの範囲を示すCellRange を取得します。

型
CellRange

width

パネルに含まれる内容全体の幅を取得します。

型
number

メソッド

getCellBoundingRect

getCellBoundingRect(r: number, c: number | string, raw?: boolean): Rect

セルの範囲(ビューポート座標単位)を取得します。

戻り値は、セルの位置とサイズ(ビューポート座標単位)を 含むRect オブジェクトです。 このビューポート座標は、 getBoundingClientRect メソッドで使用されている座標と同じです。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

  • raw: boolean Optional

    Whether to return the rectangle in raw panel coordinates as opposed to viewport coordinates.

戻り値
Rect

getCellData

getCellData(r: number, c: number | string, formatted: boolean): any

パネル内のセルに格納された値を取得します。

パラメーター
  • r: number

    The row index of the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

  • formatted: boolean

    Whether to format the value for display.

戻り値
any

getCellElement

getCellElement(r: number, c: number | string): HTMLElement

このGridPanel 内のセルを表す要素を取得します。

セルが現在表示されていない場合、このメソッドはnullを返します。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

戻り値
HTMLElement

getSelectedState

getSelectedState(r: number, c: number | string, rng?: CellRange): SelectedState

セルの選択状態を示すSelectedState 値を取得します。

パラメーター
  • r: number

    Row index of the cell to inspect.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

  • rng: CellRange Optional

    CellRange that contains the cell to inspect.

戻り値
SelectedState

setCellData

setCellData(r: number, c: number | string, value: any, coerce?: boolean, invalidate?: boolean): boolean

パネル内のセルの内容を設定します。

パラメーター
  • r: number

    The index of the row that contains the cell.

  • c: number | string

    The index, name, or binding of the column that contains the cell.

  • value: any

    The value to store in the cell.

  • coerce: boolean Optional

    Whether to change the value automatically to match the column's data type.

  • invalidate: boolean Optional

    Whether to invalidate the grid to show the change.

戻り値
boolean