Creates a new instance of DataView
Specifies container node the grid attached to
Specifies an array of objects for the grid model or a dataSource object
Specifies an array of column definitions or a JSON object used to deserialize the grid. If it is an array of column objects, please see IColumn type to find available properties
Specifies layout strategy
This event occurs when the user changes the column visibility, pinned option, or column width, or expands or collapses the column group from UI
This event occurs when the user starts dragging the column and before dropping the column in the column header
This event occurs before editing, once editing has started, before editing has ended, or editing has stopped
This event occurs when the user updates groups with UI actions. The event is fired before the actual update happens
This event occurs when clicking the row
This event occurs when double-clicking the row
This event occurs when the user changes the selection using UI actions
Gets the HTML element where the grid attached to
Gets underlying instance of DataManager
Gets instance of current ILayoutEngine
Gets grid options.
Get the unique id of the current instance
Gets the instance of DataView which is hosted to the specified node
Cancel batch edit and clear changes.
Cancels editing the current row.
Clears selected cells.
Removes the DataView instance from the host and destroys all resources used by the current instance which includes layout engine and group strategy.
Formats the dataItem based on column formats
object that needs to be formatted.
the formatted object
Get cahced actions which havn't been saved.
Gets item information by given index or row id.
The input view index or row id, can be an array. notice that the index is the view index in control.
The queried item information.
Gets the layout information of the current instance.
An object which uses the area name as the key and the layout information as the value.
Gets the render information.
An object used to specify the area, horizontal scroll offset, and vertical offset. The object indicates whether the return value contains row render infos.
The render information result.
Util method, used to get the corresponding row element id from hitInfo
hit test result, can get this by calling hitTest method
row element id
Util method, used to get the row info from row id
the id of the row
Gets the data of selected rows.
The information of selected rows, including data, sourceRow and columns id.
Hide built-in loading overlay
Invalidates the entire control
Refreshes the specified part of the grid.
The area that needs to be refreshed.
Save batch edit changes.
callback function which will be executed after save all actions to server return results.
The source row index or source row indexes array of selected row.
The column id collection of selected row. It will work if selectionUnit is cell.
Show built-in loading overlay
Starts to edit the current row
The dataview row viewIndex or id.
DataView column index.
Stops editing the current row and commits the new value.
Serializes the current instance to a JSON object
A JSON object