new Grid(options)grid.jsline 207
Grid public API
PARAMETERS
Name Type Description options
Object
PROPERTIES
Name Type Description data
[ Array ]
Grid data for making rows.
header
[ Object ]
Options object for header.
PROPERTIES
Name Type Description height
number = 40
The height of the header area.
complexColumns
[ Array ]
This options creates new parent headers of the multiple columns
which includes the headers of spcified columns, and sets up the hierarchy.virtualScrolling
boolean = false
If set to true, use virtual-scrolling so that large
amount of data can be processed performantly. When using this option that sets true, the rowHeight option
must set value.rowHeight
[ stringnumber ]
The height of each rows. The default value is 'auto',
the height of each rows expands to dom's height. If set to number, the height is fixed.minRowHeight
number = 40
The minimum height of each rows. When this value is larger than
the row's height, it set to the row's height.bodyHeight
[ stringnumber ]
The height of body area. The default value is 'auto',
the height of body area expands to total height of rows. If set to 'fitToParent', the height of the grid
will expand to fit the height of parent element. If set to number, the height is fixed.minBodyHeight
number = minRowHeight
The minimum height of body area. When this value
is larger than the body's height, it set to the body's height.columnOptions
[ Object ]
Option object for all columns
PROPERTIES
Name Type Description minWidth
number = 50
Minimum width of each columns
resizable
boolean = true
If set to true, resize-handles of each columns
will be shown.frozenCount
number = 0
The number of frozen columns.
The columns indexed from 0 to this value will always be shown on the left side.
Grid#setFrozenColumnCount can be used for setting this value dynamically.frozenBorderWidth
number = 1
The value of frozen border width.
When the frozen columns are created by "frozenCount" option, the frozen border width set.treeColumnOptions
[ Object ]
Option object for the tree column.
PROPERTIES
Name Type Description name
[ string ]
The name of column that makes tree column.
useIcon
boolean = true
If set to true, the folder or file icon is created on
the left side of the tree cell data.useCascadingCheckbox
[ boolean ]
If set to true, a cascading relationship is
created in the checkbox between parent and child rows.copyOptions
[ Object ]
Option object for clipboard copying
PROPERTIES
Name Type Description useFormattedValue
[ boolean ]
Whether to use formatted values or original values
as a string to be copied to the clipboarduseClientSort
boolean = true
If set to true, sorting will be executed by client itself
without server.editingEvent
string = 'dblclick'
If set to 'click', editable cell in the view-mode will be
changed to edit-mode by a single click.scrollX
boolean = true
Specifies whether to show horizontal scrollbar.
scrollY
boolean = true
Specifies whether to show vertical scrollbar.
showDummyRows
boolean = false
If set to true, empty area will be filled with dummy rows.
keyColumnName
string = null
The name of the column to be used to identify each rows.
If not specified, unique value for each rows will be created internally.heightResizable
boolean = false
If set to true, a handle for resizing height will be shown.
pagination
Object = null
Options for tui.Pagination.
If set to null or false, pagination will not be used.selectionUnit
string = 'cell'
The unit of selection on Grid. ('cell', 'row')
rowHeaders
[ Array ]
Options for making the row header. The row header content is number of
each row or input element. The value of each item is enable to set string type. (ex: 'rowNum', 'checkbox')PROPERTIES
Name Type Description type
[ string ]
The type of the row header. ('rowNum', 'checkbox', 'radio')
title
[ string ]
The title of the row header on the grid header area.
width
[ number ]
The width of the row header.
template
[ function ]
Template function which returns the content(HTML) of
the row header. This function takes a parameter an K-V object as a parameter to match template values.columns
Array
The configuration of the grid columns.
PROPERTIES
Name Type Description name
string
The name of the column.
ellipsis
boolean = false
If set to true, ellipsis will be used
for overflowing content.align
string = left
Horizontal alignment of the column content.
Available values are 'left', 'center', 'right'.valign
string = middle
Vertical alignment of the column content.
Available values are 'top', 'middle', 'bottom'.className
[ string ]
The name of the class to be used for all cells of
the column.title
[ string ]
The title of the column to be shown on the header.
width
[ number ]
The width of the column. The unit is pixel. If this value
isn't set, the column's width is automatically resized.minWidth
number = 50
The minimum width of the column. The unit is pixel.
hidden
[ boolean ]
If set to true, the column will not be shown.
resizable
[ boolean ]
If set to false, the width of the column
will not be changed.validation
[ Object ]
The options to be used for validation.
Validation is executed whenever data is changed or the Grid#validate is called.PROPERTIES
Name Type Description required
boolean = false
If set to true, the data of the column
will be checked to be not empty.dataType
string = 'string'
Specifies the type of the cell value.
Avilable types are 'string' and 'number'.defaultValue
[ string ]
The default value to be shown when the column
doesn't have a value.formatter
[ function ]
The function that formats the value of the cell.
The retrurn value of the function will be shown as the value of the cell.useHtmlEntity
boolean = true
If set to true, the value of the cell
will be encoded as HTML entities.ignored
boolean = false
If set to true, the value of the column will be
ignored when setting up the list of modified rows.sortable
boolean = false
If set to true, sort button will be shown on
the right side of the column header, which executes the sort action when clicked.sortingType
string = 'asc'
If set to desc, will execute descending sort initially
when sort button is clicked.onBeforeChange
[ function ]
The function that will be
called before changing the value of the cell. If stop() method in event object is called,
the changing will be canceled.onAfterChange
[ function ]
The function that will be
called after changing the value of the cell.editOptions
[ Object ]
The object for configuring editing UI.
PROPERTIES
Name Type Description type
string = 'text'
The string value that specifies
the type of the editing UI.
Available values are 'text', 'password', 'select', 'radio', 'checkbox'.useViewMode
boolean = true
If set to true, default mode
of the cell will be the 'view-mode'. The mode will be switched to 'edit-mode' only when user
double click or press 'ENTER' key on the cell. If set to false, the cell will always show the
input elements as a default.listItems
[ Array ]
Specifies the option items for the
'select', 'radio', 'checkbox' type. The item of the array must contain properties named
'text' and 'value'. (e.g. {text: 'option1', value: 1}, {...})onFocus
[ function ]
The function that will be
called when a 'focus' event occurred on an input elementonBlur
[ function ]
The function that will be
called when a 'blur' event occurred on an input elementonKeyDown
[ function ]
The function that will be
called when a 'keydown' event occurred on an input elementprefix
[ stringfunction ]
The HTML string to be
shown left to the input element. If it's a function, the return value will be used.postfix
[ stringfunction ]
The HTML string to be
shown right to the input element. If it's a function, the return value will be used.converter
[ function ]
The function whose
return value (HTML) represents the UI of the cell. If the return value is
falsy(null|undefined|false), default UI will be shown.copyOptions
[ Object ]
Option object for clipboard copying.
This option is column specific, and overrides the global copyOptions.PROPERTIES
Name Type Description useFormattedValue
[ boolean ]
Whether to use
formatted values or original values as a string to be copied to the clipboarduseListItemText
[ boolean ]
Whether to use
concatenated text or original values as a string to be copied to the clipboardcustomValue
[ function ]
Whether to use
customized value from "customValue" callback or original values as a string to be copied to the clipboardrelations
[ Array ]
Specifies relation between this and other column.
PROPERTIES
Name Type Description targetNames
[ Array ]
Array of the names of target columns.
disabled
[ function ]
If returns true, target columns
will be disabled.editable
[ function ]
If returns true, target columns
will be editable.listItems
[ function ]
The function whose return
value specifies the option list for the 'select', 'radio', 'checkbox' type.
The options list of target columns will be replaced with the return value of this function.whiteSpace
string = 'nowrap'
If set to 'normal', the text line is broken
by fitting to the column's width. If set to 'pre', spaces are preserved and the text is braken by
new line characters. If set to 'pre-wrap', spaces are preserved, the text line is broken by
fitting to the column's width and new line characters. If set to 'pre-line', spaces are merged,
the text line is broken by fitting to the column's width and new line characters.component
[ Object ]
Option for using tui-component
PROPERTIES
Name Type Description name
[ string ]
The name of the compnent to use
for this columnoptions
[ Object ]
The options object to be used for
creating the componentsummary
[ Object ]
The object for configuring summary area.
PROPERTIES
Name Type Description height
[ number ]
The height of the summary area.
position
string = 'bottom'
The position of the summary area. ('bottom', 'top')
defaultContent
[ stringObject ]
The configuring of summary cell for every column.
This options can be overriden for each column by columnContent options.
If type is string, the value is used as HTML of summary cell for every columns
without auto-calculation.PROPERTIES
Name Type Description useAutoSummary
boolean = true
If set to true, the summary value of every column is served as a paramater to the template
function whenever data is changed.template
[ function ]
Template function which returns the
content(HTML) of the column of the summary. This function takes an K-V object as a parameter
which contains a summary values keyed by 'sum', 'avg', 'min', 'max' and 'cnt'.columnContent
[ Object ]
The configuring of summary cell for each column.
Sub options below are keyed by each column name.
If type of value of this object is string, the value is used as HTML of summary cell for
the column without auto-calculation.PROPERTIES
Name Type Description useAutoSummary
boolean = true
If set to true, the summary value of each column is served as a paramater to the template
function whenever data is changed.template
[ function ]
Template function which returns the
content(HTML) of the column of the summary. This function takes an K-V object as a parameter
which contains a summary values keyed by 'sum', 'avg', 'min', 'max' and 'cnt'.usageStatistics
boolean = true
Send the hostname to google analytics.
If you do not want to send the hostname, this option set to false.
Static Methods
applyTheme(presetName, extOptions)grid.jsline 1310
Apply theme to all grid instances with the preset options of a given name.
PARAMETERS
Name Type Description presetName
string
preset theme name. Available values are 'default', 'striped' and 'clean'.
extOptions
[ Object ]
if exist, extend preset options with this object.
PROPERTIES
Name Type Description outline
[ Object ]
Styles for the table outline.
PROPERTIES
Name Type Description border
[ string ]
Color of the table outline.
showVerticalBorder
[ boolean ]
Whether vertical outlines of
the table are visible.selection
[ Object ]
Styles for a selection layer.
PROPERTIES
Name Type Description background
[ string ]
Background color of a selection layer.
border
[ string ]
Border color of a selection layer.
scrollbar
[ Object ]
Styles for scrollbars.
PROPERTIES
Name Type Description border
[ string ]
Border color of scrollbars.
background
[ string ]
Background color of scrollbars.
emptySpace
[ string ]
Color of extra spaces except scrollbar.
thumb
[ string ]
Color of thumbs in scrollbars.
active
[ string ]
Color of arrows(for IE) or
thumb:hover(for other browsers) in scrollbars.frozenBorder
[ Object ]
Styles for a frozen border.
PROPERTIES
Name Type Description border
[ string ]
Border color of a frozen border.
area
[ Object ]
Styles for the table areas.
PROPERTIES
Name Type Description header
[ Object ]
Styles for the header area in the table.
PROPERTIES
Name Type Description background
[ string ]
Background color of the header area
in the table.border
[ string ]
Border color of the header area
in the table.body
[ Object ]
Styles for the body area in the table.
PROPERTIES
Name Type Description background
[ string ]
Background color of the body area
in the table.summary
[ Object ]
Styles for the summary area in the table.
PROPERTIES
Name Type Description background
[ string ]
Background color of the summary area
in the table.border
[ string ]
Border color of the summary area
in the table.cell
[ Object ]
Styles for the table cells.
PROPERTIES
Name Type Description normal
[ Object ]
Styles for normal cells.
PROPERTIES
Name Type Description background
[ string ]
Background color of normal cells.
border
[ string ]
Border color of normal cells.
text
[ string ]
Text color of normal cells.
showVerticalBorder
[ boolean ]
Whether vertical borders of
normal cells are visible.showHorizontalBorder
[ boolean ]
Whether horizontal borders of
normal cells are visible.head
[ Object ]
Styles for head cells.
PROPERTIES
Name Type Description background
[ string ]
Background color of head cells.
border
[ string ]
border color of head cells.
text
[ string ]
text color of head cells.
showVerticalBorder
[ boolean ]
Whether vertical borders of
head cells are visible.showHorizontalBorder
[ boolean ]
Whether horizontal borders of
head cells are visible.selectedHead
[ Object ]
Styles for selected head cells.
PROPERTIES
Name Type Description background
[ string ]
background color of selected haed cells.
rowHead
[ Object ]
Styles for row's head cells.
PROPERTIES
Name Type Description background
[ string ]
Background color of row's head cells.
border
[ string ]
border color of row's head cells.
text
[ string ]
text color of row's head cells.
showVerticalBorder
[ boolean ]
Whether vertical borders of
row's head cells are visible.showHorizontalBorder
[ boolean ]
Whether horizontal borders of
row's head cells are visible.selectedRowHead
[ Object ]
Styles for selected row's head cells.
PROPERTIES
Name Type Description background
[ string ]
background color of selected row's haed cells.
summary
[ Object ]
Styles for cells in the summary area.
PROPERTIES
Name Type Description background
[ string ]
Background color of cells in the summary area.
border
[ string ]
border color of cells in the summary area.
text
[ string ]
text color of cells in the summary area.
showVerticalBorder
[ boolean ]
Whether vertical borders of
cells in the summary area are visible.showHorizontalBorder
[ boolean ]
Whether horizontal borders of
cells in the summary area are visible.focused
[ Object ]
Styles for a focused cell.
PROPERTIES
Name Type Description background
[ string ]
background color of a focused cell.
border
[ string ]
border color of a focused cell.
focusedInactive
[ Object ]
Styles for a inactive focus cell.
PROPERTIES
Name Type Description border
[ string ]
border color of a inactive focus cell.
required
[ Object ]
Styles for required cells.
PROPERTIES
Name Type Description background
[ string ]
background color of required cells.
text
[ string ]
text color of required cells.
editable
[ Object ]
Styles for editable cells.
PROPERTIES
Name Type Description background
[ string ]
background color of the editable cells.
text
[ string ]
text color of the selected editable cells.
disabled
[ Object ]
Styles for disabled cells.
PROPERTIES
Name Type Description background
[ string ]
background color of disabled cells.
text
[ string ]
text color of disabled cells.
invalid
[ Object ]
Styles for invalid cells.
PROPERTIES
Name Type Description background
[ string ]
background color of invalid cells.
text
[ string ]
text color of invalid cells.
currentRow
[ Object ]
Styles for cells in a current row.
PROPERTIES
Name Type Description background
[ string ]
background color of cells in a current row.
text
[ string ]
text color of cells in a current row.
evenRow
[ Object ]
Styles for cells in even rows.
PROPERTIES
Name Type Description background
[ string ]
background color of cells in even rows.
text
[ string ]
text color of cells in even rows.
oddRow
[ Object ]
Styles for cells in even rows.
PROPERTIES
Name Type Description background
[ string ]
background color of cells in odd rows.
text
[ string ]
text color of cells in odd rows.
dummy
[ Object ]
Styles for dummy cells.
PROPERTIES
Name Type Description background
[ string ]
background color of dummy cells.
EXAMPLES
var Grid = tui.Grid; // or require('tui-grid') Grid.applyTheme('striped', { grid: { border: '#aaa', text: '#333' }, cell: { disabled: { text: '#999' } } });
setLanguage(localeCode, data)grid.jsline 1345
Set language
PARAMETERS
Name Type Description localeCode
string
Code to set locale messages and
this is the language or language-region combination (ex: en-US)data
[ Object ]
Messages using in Grid
EXAMPLES
var Grid = tui.Grid; // or require('tui-grid') Grid.setLanguage('en'); // default and set English Grid.setLanguage('ko'); // set Korean Grid.setLanguage('en-US', { // set new language display: { noData: 'No data.', loadingData: 'Loading data.', resizeHandleGuide: 'You can change the width of the column by mouse drag, ' + 'and initialize the width by double-clicking.' }, net: { confirmCreate: 'Are you sure you want to create {{count}} data?', confirmUpdate: 'Are you sure you want to update {{count}} data?', confirmDelete: 'Are you sure you want to delete {{count}} data?', confirmModify: 'Are you sure you want to modify {{count}} data?', noDataToCreate: 'No data to create.', noDataToUpdate: 'No data to update.', noDataToDelete: 'No data to delete.', noDataToModify: 'No data to modify.', failResponse: 'An error occurred while requesting data.\nPlease try again.' } });
Instance Methods
appendRow(row, options)grid.jsline 696
Inserts the new row with specified data to the end of table.
PARAMETERS
Name Type Description row
[ Object ]
The data for the new row
options
[ Object ]
Options
PROPERTIES
Name Type Description at
[ number ]
The index at which new row will be inserted
extendPrevRowSpan
[ boolean ]
If set to true and the previous row at target index
has a rowspan data, the new row will extend the existing rowspan data.focus
[ boolean ]
If set to true, move focus to the new row after appending
parentRowKey
[ NumberString ]
Tree row key of the parent which appends given rows
offset
[ number ]
Tree offset from first sibling
findRows(conditions)grid.jsline 1062
Finds rows by conditions
PARAMETERS
Name Type Description conditions
ObjectFunction
object (key: column name, value: column value) or
function that check the value and returns true/false result to find rowsRETURNS:
{Array
} - Row listEXAMPLES
Conditions type is object.
grid.findRows({ artist: 'Birdy', price: 10000 });Conditions type is function.
grid.findRows(function(row) { return (/b/ig.test(row.artist) && row.price > 10000); });
focus(rowKey, columnName, isScrollable)grid.jsline 496
Sets focus on the cell identified by the specified rowKey and columnName.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the row
columnName
string
The name of the column
isScrollable
boolean = false
If set to true, the view will scroll to the cell element.
focusAt(rowIndex, columnIndex, isScrollable)grid.jsline 507
Sets focus on the cell at the specified index of row and column.
PARAMETERS
Name Type Description rowIndex
numberstring
The index of the row
columnIndex
string
The index of the column
isScrollable
boolean = false
If set to true, the view will scroll to the cell element.
focusIn(rowKey, columnName, isScrollable)grid.jsline 517
Sets focus on the cell at the specified index of row and column and starts to edit.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the row
columnName
string
The name of the column
isScrollable
boolean = false
If set to true, the view will scroll to the cell element.
focusInAt(rowIndex, columnIndex, isScrollable)grid.jsline 527
Sets focus on the cell at the specified index of row and column and starts to edit.
PARAMETERS
Name Type Description rowIndex
numberstring
The index of the row
columnIndex
string
The index of the column
isScrollable
boolean = false
If set to true, the view will scroll to the cell element.
getColumnValues(columnName, isJsonString)grid.jsline 383
Returns a list of all values in the specified column.
PARAMETERS
Name Type Description columnName
string
The name of the column
isJsonString
boolean = false
It set to true, return value will be converted to JSON string.
RETURNS:
{Arraystring
} - A List of all values in the specified column. (or JSON string of the list)
getModifiedRows(options)grid.jsline 681
Returns the object that contains the lists of changed data compared to the original data.
The object has properties 'createdRows', 'updatedRows', 'deletedRows'.PARAMETERS
Name Type Description options
[ Object ]
Options
PROPERTIES
Name Type Description checkedOnly
boolean = false
If set to true, only checked rows will be considered.
withRawData
boolean = false
If set to true, the data will contains
the row data for internal use.rowKeyOnly
boolean = false
If set to true, only keys of the changed
rows will be returned.ignoredColumns
[ Array ]
A list of column name to be excluded.
RETURNS:
{Object
} - Object that contains the result list.
getRow(rowKey, isJsonString)grid.jsline 393
Returns the object that contains all values in the specified row.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the target row
isJsonString
boolean = false
If set to true, return value will be converted to JSON string.
RETURNS:
{Objectstring
} - The object that contains all values in the row. (or JSON string of the object)
getRowAt(index, isJsonString)grid.jsline 403
Returns the object that contains all values in the row at specified index.
PARAMETERS
Name Type Description index
number
The index of the row
isJsonString
boolean = false
If set to true, return value will be converted to JSON string.
RETURNS:
{Objectstring
} - The object that contains all values in the row. (or JSON string of the object)
getSummaryValues(columnName)grid.jsline 994
Returns the values of given column summary.
If the column name is not specified, all values of available columns are returned.
The shape of returning object looks like the example below.PARAMETERS
Name Type Description columnName
[ string ]
column name
RETURNS:
{Object
}EXAMPLES
{ column1: { sum: 1000, avg: 200, max: 300, min: 50, cnt: 5 }, column2: { sum: 2000, avg: 300, max: 600, min: 80, cnt: 5 } }
getValue(rowKey, columnName, isOriginal)grid.jsline 373
Returns the value of the cell identified by the rowKey and columnName.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the target row.
columnName
string
The name of the column
isOriginal
[ boolean ]
It set to true, the original value will be return.
RETURNS:
{numberstring
} - The value of the cell
removeCellClassName(rowKey, columnName, className)grid.jsline 863
Removes the specified css class from the cell element indentified by the rowKey and columnName.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the row
columnName
string
The name of the column
className
string
The css class name to be removed
removeRow(rowKey, options)grid.jsline 591
Removes the row identified by the specified rowKey.
PARAMETERS
Name Type Description rowKey
numberstring
The unique key of the row
options
[ booleanobject ]
Options. If the type is boolean, this value is equivalent to
options.removeOriginalData.PROPERTIES
Name Type Description removeOriginalData
[ boolean ]
If set to true, the original data will be removed.
keepRowSpanData
[ boolean ]
If set to true, the value of the merged cells will not be
removed although the target is first cell of them.
selection(range)grid.jsline 1083
Selects cells or rows by range
PARAMETERS
Name Type Description range
Object
Selection range
PROPERTIES
Name Type Description start
[ Array ]
Index info of start selection (ex: rowIndex, columnIndex)
end
[ Array ]
Index info of end selection (ex: rowIndex, columnIndex)
setColumnValues(columnName, columnValue, isCheckCellState)grid.jsline 458
Sets the all values in the specified column.
PARAMETERS
Name Type Description columnName
string
The name of the column
columnValue
numberstring
The value to be set
isCheckCellState
boolean = true
If set to true, only editable and not disabled cells will be affected.
validate()grid.jsline 1043
Validates all data and returns the result.
Return value is an array which contains only rows which have invalid cell data.RETURNS:
{Array.<Object>
} - An array of error objectEXAMPLES
// return value example [ { rowKey: 1, errors: [ { columnName: 'c1', errorCode: 'REQUIRED' }, { columnName: 'c2', errorCode: 'REQUIRED' } ] }, { rowKey: 3, errors: [ { columnName: 'c2', errorCode: 'REQUIRED' } ] } ]
Events
clickcontainer.jsline 119
Occurs when a mouse button is clicked on the Grid.
The properties of the event object include the native event object.PROPERTIES
Name Type Description nativeEvent
jQueryEvent
Event object
targetType
string
Type of event target
rowKey
number
rowKey of the target cell
columnName
string
columnName of the target cell
instance
Grid
Current grid instance
collapsedtreeRowList.jsline 468
Occurs when the row having child rows is collapsed
PROPERTIES
Name Type Description rowKey
numberstring
rowKey of the collapsed row
descendantRowKeys
Array.<undefined>
rowKey list of all descendant rows
instance
Grid
Current grid instance
collapsedAlltreeRowList.jsline 486
Occurs when all rows having child rows are collapsed
dblclickcontainer.jsline 146
Occurs when a mouse button is double clicked on the Grid.
The properties of the event object include the native event object.PROPERTIES
Name Type Description nativeEvent
jQueryEvent
Event object
targetType
string
Type of event target
rowKey
number
rowKey of the target cell
columnName
string
columnName of the target cell
instance
Grid
Current grid instance
deleteRangerowList.jsline 1102
Occurs when cells are deleted by 'del' key
PROPERTIES
Name Type Description columnNames
Array
columName list of deleted cell
rowKeys
Array
rowKey list of deleted cell
instance
Grid
Current grid instance
expandedtreeRowList.jsline 409
Occurs when the row having child rows is expanded
PROPERTIES
Name Type Description rowKey
numberstring
rowKey of the expanded row
descendantRowKeys
Array.<undefined>
rowKey list of all descendant rows
instance
Grid
Current grid instance
expandedAlltreeRowList.jsline 427
Occurs when all rows having child rows are expanded
focusChangefocus.jsline 325
Occurs when focused cell is about to change
PROPERTIES
Name Type Description rowKey
number
rowKey of the target cell
columnName
number
columnName of the target cell
prevRowKey
number
rowKey of the currently focused cell
prevColumnName
number
columnName of the currently focused cell
instance
Grid
Current grid instance
mousedowncontainer.jsline 227
Occurs when a mouse button is downed on the Grid.
The event object has all properties copied from the native MouseEvent.PROPERTIES
Name Type Description nativeEvent
jQueryEvent
Event object
targetType
string
Type of event target
rowKey
number
rowKey of the target cell
columnName
string
columnName of the target cell
instance
Grid
Current grid instance
mouseoutcontainer.jsline 196
Occurs when a mouse pointer is moved off from the Grid.
The event object has all properties copied from the native MouseEvent.PROPERTIES
Name Type Description nativeEvent
jQueryEvent
Event object
targetType
string
Type of event target
rowKey
number
rowKey of the target cell
columnName
string
columnName of the target cell
instance
Grid
Current grid instance
mouseovercontainer.jsline 173
Occurs when a mouse pointer is moved onto the Grid.
The properties of the event object include the native MouseEvent object.PROPERTIES
Name Type Description nativeEvent
jQueryEvent
Event object
targetType
string
Type of event target
rowKey
number
rowKey of the target cell
columnName
string
columnName of the target cell
instance
Grid
Current grid instance
selectionselection.jsline 890
Occurs when selecting cells
PROPERTIES
Name Type Description range
Object
Range of selection
instance
Grid
Current grid instance
