new Grid(options)
Grid public API
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Methods
-
static applyTheme(presetName, extOptionsopt)
-
Apply theme to all grid instances with the preset options of a given name.
Parameters:
Name Type Attributes Description presetName
String preset theme name. Available values are 'default', 'striped' and 'clean'.
extOptions
Object <optional>
if exist, extend preset options with this object.
Properties
Name Type Attributes Description grid
Object <optional>
Styles for the grid (container)
Properties
Name Type Attributes Description background
String <optional>
Background color of the grid.
border
number <optional>
Border color of the grid
text
number <optional>
Text color of the grid.
selection
Object <optional>
Styles for a selection layer.
Properties
Name Type Attributes Description background
String <optional>
Background color of a selection layer.
border
String <optional>
Border color of a selection layer.
scrollbar
Object <optional>
Styles for scrollbars.
Properties
Name Type Attributes Description background
String <optional>
Background color of scrollbars.
thumb
String <optional>
Color of thumbs in scrollbars.
active
String <optional>
Color of arrows(for IE) or
thumb:hover(for other browsers) in scrollbars.cell
Object <optional>
Styles for the table cells.
Properties
Name Type Attributes Description normal
Object <optional>
Styles for normal cells.
Properties
Name Type Attributes Description background
String <optional>
Background color of normal cells.
border
String <optional>
Border color of normal cells.
text
String <optional>
Text color of normal cells.
showVerticalBorder
Boolean <optional>
Whether vertical borders of
normal cells are visible.showHorizontalBorder
Boolean <optional>
Whether horizontal borders of
normal cells are visible.head
Object <optional>
Styles for the head cells.
Properties
Name Type Attributes Description background
String <optional>
Background color of head cells.
border
String <optional>
border color of head cells.
text
String <optional>
text color of head cells.
showVerticalBorder
Boolean <optional>
Whether vertical borders of
head cells are visible.showHorizontalBorder
Boolean <optional>
Whether horizontal borders of
head cells are visible.selectedHead
Object <optional>
Styles for selected head cells.
Properties
Name Type Attributes Description background
String <optional>
background color of selected haed cells.
text
String <optional>
text color of selected head cells.
focused
Object <optional>
Styles for a focused cell.
Properties
Name Type Attributes Description background
String <optional>
background color of a focused cell.
border
String <optional>
border color of a focused cell.
focusedInactive
Object <optional>
Styles for a inactive focus cell.
Properties
Name Type Attributes Description border
String <optional>
border color of a inactive focus cell.
required
Object <optional>
Styles for required cells.
Properties
Name Type Attributes Description background
String <optional>
background color of required cells.
text
String <optional>
text color of required cells.
editable
Object <optional>
Styles for editable cells.
Properties
Name Type Attributes Description background
String <optional>
background color of the editable cells.
text
String <optional>
text color of the selected editable cells.
disabled
Object <optional>
Styles for disabled cells.
Properties
Name Type Attributes Description background
String <optional>
background color of disabled cells.
text
String <optional>
text color of disabled cells.
invalid
Object <optional>
Styles for invalid cells.
Properties
Name Type Attributes Description background
String <optional>
background color of invalid cells.
text
String <optional>
text color of invalid cells.
currentRow
Object <optional>
Styles for cells in a current row.
Properties
Name Type Attributes Description background
String <optional>
background color of cells in a current row.
text
String <optional>
text color of cells in a current row.
evenRow
Object <optional>
Styles for cells in even rows.
Properties
Name Type Attributes Description background
String <optional>
background color of cells in even rows.
text
String <optional>
text color of cells in even rows.
dummy
Object <optional>
Styles for dummy cells.
Properties
Name Type Attributes Description background
String <optional>
background color of dummy cells.
Example
var Grid = tui.Grid; // or require('tui-grid') Grid.applyTheme('striped', { grid: { border: '#aaa', text: '#333' }, cell: { disabled: { text: '#999' } } });
-
static getInstanceById(id) → {tui.Grid}
-
Returns an instance of the grid associated to the id.
Parameters:
Name Type Description id
number ID of the target grid
Returns:
tui.Grid -- Grid instance
var Grid = tui.Grid; // or require('tui-grid')
Grid.getInstanceById(id);
- Grid instance
-
static setLanguage(localeCode, dataopt)
-
Set language
Parameters:
Name Type Attributes Description localeCode
string Code to set locale messages and
this is the language or language-region combination (ex: en-US)data
object <optional>
Messages using in Grid
Example
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.' } });
-
activateFocus()
-
Makes view ready to get keyboard input.
-
addCellClassName(rowKey, columnName, className)
-
Adds the specified css class to cell element identified by the rowKey and className
Parameters:
Name Type Description rowKey
number | string The unique key of the row
columnName
string The name of the column
className
string The css class name to add
-
addRowClassName(rowKey, className)
-
Adds the specified css class to all cell elements in the row identified by the rowKey
Parameters:
Name Type Description rowKey
number | string The unique key of the row
className
string The css class name to add
-
appendRow(rowopt, optionsopt)
-
Insert the new row with specified data to the end of table.
Parameters:
Name Type Attributes Description row
object <optional>
The data for the new row
options
object <optional>
Options
Properties
Name Type Attributes Description at
number <optional>
The index at which new row will be inserted
extendPrevRowSpan
boolean <optional>
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 <optional>
If set to true, move focus to the new row after appending
-
blur()
-
Removes focus from the focused cell.
-
check(rowKey)
-
Checks the row identified by the specified rowKey.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
-
checkAll()
-
Checks all rows.
-
clear()
-
Removes all rows.
-
copyToClipboard()
-
Copy to clipboard
-
destroy()
-
Destroys the instance.
-
disable()
-
Disables all rows.
-
disableCheck(rowKey)
-
Disables the row identified by the spcified rowKey to not be abled to check.
Parameters:
Name Type Description rowKey
number | string The unique keyof the row.
-
disableRow(rowKey)
-
Disables the row identified by the rowkey.
Parameters:
Name Type Description rowKey
number | string The unique key of the target row
-
enable()
-
Enables all rows.
-
enableCheck(rowKey)
-
Enables the row identified by the rowKey to be able to check.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
-
enableRow(rowKey)
-
Enables the row identified by the rowKey.
Parameters:
Name Type Description rowKey
number | string The unique key of the target row
-
findRows(conditions) → {array}
-
Find rows by conditions
Parameters:
Name Type Description conditions
object K-V object to find rows (K: column name, V: column value)
Returns:
array -Row list
-
focus(rowKey, columnName, isScrollableopt)
-
Sets focus on the cell identified by the specified rowKey and columnName.
Parameters:
Name Type Attributes Default Description rowKey
number | string The unique key of the row
columnName
string The name of the column
isScrollable
boolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusAt(rowIndex, columnIndex, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column.
Parameters:
Name Type Attributes Default Description rowIndex
number | string The index of the row
columnIndex
string The index of the column
isScrollable
boolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusIn(rowKey, columnName, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column and starts to edit.
Parameters:
Name Type Attributes Default Description rowKey
number | string The unique key of the row
columnName
string The name of the column
isScrollable
boolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusInAt(rowIndex, columnIndex, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column and starts to edit.
Parameters:
Name Type Attributes Default Description rowIndex
number | string The index of the row
columnIndex
string The index of the column
isScrollable
boolean <optional>
false If set to true, the view will scroll to the cell element.
-
getAddOn(name) → {instance}
-
Returns the instance of specified AddOn.
Parameters:
Name Type Description name
string The name of the AddOn
Returns:
instance -addOn - The instance of the AddOn
-
getCheckedRowKeys(isJsonStringopt) → {Array|string}
-
Returns a list of the rowKey of checked rows.
Parameters:
Name Type Attributes Default Description isJsonString
Boolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Array | string -- A list of the rowKey. (or JSON string of the list)
-
getCheckedRows(useJsonopt) → {Array|string}
-
Returns a list of the checked rows.
Parameters:
Name Type Attributes Default Description useJson
Boolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Array | string -- A list of the checked rows. (or JSON string of the list)
-
getColumns() → {Array}
-
Returns a list of the column model.
Returns:
Array -- A list of the column model.
-
getColumnValues(columnName, isJsonStringopt) → {Array|string}
-
Returns a list of all values in the specified column.
Parameters:
Name Type Attributes Default Description columnName
string The name of the column
isJsonString
boolean <optional>
false It set to true, return value will be converted to JSON string.
Returns:
Array | string -- A List of all values in the specified column. (or JSON string of the list)
-
getElement(rowKey, columnName) → {jQuery}
-
Returns the jquery object of the cell identified by the rowKey and columnName.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
columnName
string The name of the column
Returns:
jQuery -- The jquery object of the cell element
-
getFocusedCell() → {number|string|string}
-
Returns data of currently focused cell
Returns:
-
number
-
rowKey - The unique key of the row
-
string
-
columnName - The name of the column
-
string
-
value - The value of the cell
-
number
-
-
getIndexOfColumn(columnName) → {number}
-
Returns the index of the column indentified by the column name.
Parameters:
Name Type Description columnName
string The unique key of the column
Returns:
number -- The index of the column
-
getIndexOfRow(rowKey) → {number}
-
Returns the index of the row indentified by the rowKey.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
Returns:
number -- The index of the row
-
getModifiedRows(optionsopt) → {Object}
-
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 Attributes Description options
Object <optional>
Options
Properties
Name Type Attributes Default Description checkedOnly
boolean <optional>
false If set to true, only checked rows will be considered.
withRawData
boolean <optional>
false If set to true, the data will contains
the row data for internal use.rowKeyOnly
boolean <optional>
false If set to true, only keys of the changed
rows will be returned.ignoredColumns
Array <optional>
A list of column name to be excluded.
Returns:
Object -- Object that contains the result list.
-
getPagination() → {tui.component.Pagination}
-
Returns an instance of tui.component.Pagination.
Returns:
tui.component.Pagination -
getRow(rowKey, isJsonStringopt) → {Object|string}
-
Returns the object that contains all values in the specified row.
Parameters:
Name Type Attributes Default Description rowKey
number | string The unique key of the target row
isJsonString
boolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Object | string -- The object that contains all values in the row. (or JSON string of the object)
-
getRowAt(index, isJsonStringopt) → {Object|string}
-
Returns the object that contains all values in the row at specified index.
Parameters:
Name Type Attributes Default Description index
number The index of the row
isJsonString
Boolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Object | string -- The object that contains all values in the row. (or JSON string of the object)
-
getRowCount() → {number}
-
Returns the total number of the rows.
Returns:
number -- The total number of the rows
-
getRows() → {Array}
-
Returns a list of all rows.
Returns:
Array -- A list of all rows
-
getRowSpanData(rowKey, columnName) → {Object}
-
Returns the rowspan data of the cell identified by the rowKey and columnName.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
columnName
string The name of the column
Returns:
Object -- Row span data
-
getSortState() → {Object}
-
Get state of the sorted column in rows
Returns:
Object -Sorted column's state
-
getValue(rowKey, columnName, isOriginalopt) → {number|string}
-
Returns the value of the cell identified by the rowKey and columnName.
Parameters:
Name Type Attributes Description rowKey
number | string The unique key of the target row.
columnName
string The name of the column
isOriginal
boolean <optional>
It set to true, the original value will be return.
Returns:
number | string -- The value of the cell
-
hideColumn(…arguments)
-
Hide columns
Parameters:
Name Type Attributes Description arguments
string <repeatable>
Column names to hide
-
isModified() → {boolean}
-
Returns true if there are at least one row modified.
Returns:
boolean -- True if there are at least one row modified.
-
prependRow(rowopt, optionsopt)
-
Insert the new row with specified data to the beginning of table.
Parameters:
Name Type Attributes Description row
object <optional>
The data for the new row
options
object <optional>
Options
Properties
Name Type Attributes Description focus
boolean <optional>
If set to true, move focus to the new row after appending
-
refreshLayout()
-
Refresh the layout view. Use this method when the view was rendered while hidden.
-
removeCellClassName(rowKey, columnName, className)
-
Removes the specified css class from the cell element indentified by the rowKey and columnName.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
columnName
string The name of the column
className
string The css class name to be removed
-
removeCheckedRows(showConfirm) → {boolean}
-
Removes all checked rows.
Parameters:
Name Type Description showConfirm
boolean If set to true, confirm message will be shown before remove.
Returns:
boolean -- True if there's at least one row removed.
-
removeRow(rowKey, optionsopt)
-
Removes the row identified by the specified rowKey.
Parameters:
Name Type Attributes Description rowKey
number | string The unique key of the row
options
boolean | object <optional>
Options. If the type is boolean, this value is equivalent to
options.removeOriginalData.Properties
Name Type Attributes Description removeOriginalData
boolean <optional>
If set to true, the original data will be removed.
keepRowSpanData
boolean <optional>
If set to true, the value of the merged cells will not be
removed although the target is first cell of them. -
removeRowClassName(rowKey, className)
-
Removes the specified css class from all cell elements in the row identified by the rowKey.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
className
string The css class name to be removed
-
resetColumnWidths()
-
Reset the width of each column by using initial setting of column models.
-
resetData(data)
-
Replace all rows with the specified list. This will not change the original data.
Parameters:
Name Type Description data
Array A list of new rows
-
restore()
-
Restores the data to the original data.
(Original data is set bysetData
-
selection(range)
-
Select cells or rows by range
Parameters:
Name Type Description range
object Selection range
Properties
Name Type Attributes Description start
array <optional>
Index info of start selection (ex: [rowIndex, columnIndex])
end
array <optional>
Index info of end selection (ex: [rowIndex, columnIndex])
-
setBodyHeight(value)
-
Sets the height of body-area.
Parameters:
Name Type Description value
number The number of pixel
-
setColumns(columns)
-
Sets the list of column model.
Parameters:
Name Type Description columns
Array A new list of column model
-
setColumnValues(columnName, columnValue, isCheckCellStateopt)
-
Sets the all values in the specified column.
Parameters:
Name Type Attributes Default Description columnName
string The name of the column
columnValue
number | string The value to be set
isCheckCellState
Boolean <optional>
true If set to true, only editable and not disabled cells will be affected.
-
setData(data, callback)
-
Replace all rows with the specified list. This will change the original data.
Parameters:
Name Type Description data
Array A list of new rows
callback
function The function that will be called when done.
-
setFooterColumnContent(columnName, contents)
-
Sets the HTML string of given column summary.
Parameters:
Name Type Description columnName
string column name
contents
string HTML string
- Deprecated:
- since version 2.5.0 and is replaced by "setSummaryColumnContent" API
-
setFrozenColumnCount(count)
-
Sets the count of frozen columns.
Parameters:
Name Type Description count
number The count of columns to be frozen
-
setHeight(height)
-
Set the height of the dimension.
Parameters:
Name Type Description height
number The height of the dimension
-
setSummaryColumnContent(columnName, contents)
-
Sets the HTML string of given column summary.
Parameters:
Name Type Description columnName
string column name
contents
string HTML string
-
setValue(rowKey, columnName, columnValue)
-
Sets the value of the cell identified by the specified rowKey and columnName.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
columnName
string The name of the column
columnValue
number | string The value to be set
-
setWidth(width)
-
Set the width of the dimension.
Parameters:
Name Type Description width
number The width of the dimension
-
showColumn(…arguments)
-
Show columns
Parameters:
Name Type Attributes Description arguments
string <repeatable>
Column names to show
-
sort(columnName, ascendingopt)
-
Sorts all rows by the specified column.
Parameters:
Name Type Attributes Description columnName
string The name of the column to be used to compare the rows
ascending
boolean <optional>
Whether the sort order is ascending.
If not specified, use the negative value of the current order. -
uncheck(rowKey)
-
Unchecks the row identified by the specified rowKey.
Parameters:
Name Type Description rowKey
number | string The unique key of the row
-
uncheckAll()
-
Unchecks all rows.
-
unSort()
-
Unsorts all rows. (Sorts by rowKey).
-
use(name, options) → {tui.Grid}
-
Create an specified AddOn and use it on this instance.
Parameters:
Name Type Description name
string The name of the AddOn to use.
options
object The option objects for configuring the AddON.
Returns:
tui.Grid -- This instance.
-
validate() → {Array.<Object>}
-
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 object
Example
// return value example [ { rowKey: 1, errors: [ { columnName: 'c1', errorCode: 'REQUIRED' }, { columnName: 'c2', errorCode: 'REQUIRED' } ] }, { rowKey: 3, errors: [ { columnName: 'c2', errorCode: 'REQUIRED' } ] } ]
Events
-
beforeRequest
-
Occurs before the http request is sent
Type:
Properties:
Name Type Description instance
Grid Current grid instance
-
check
-
Occurs when a checkbox in row header is checked
Type:
Properties:
Name Type Description rowKey
number rowKey of the checked row
instance
Grid Current grid instance
-
click
-
Occurs when a mouse button is clicked on the Grid.
The properties of the event object include the native event object.Type:
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
-
dblclick
-
Occurs when a mouse button is double clicked on the Grid.
The properties of the event object include the native event object.Type:
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
-
deleteRange
-
Occurs when cells are deleted by 'del' key
Type:
Properties:
Name Type Description columnNames
Array columName list of deleted cell
rowKeys
Array rowKey list of deleted cell
instance
Grid Current grid instance
-
errorResponse
-
Occurs after the response event, if the response is Error
Type:
Properties:
Name Type Description httpStatus
number HTTP status
requestType
string Request type
requestParameter
string Request parameters
instance
Grid Current grid instance
-
failResponse
-
Occurs after the response event, if the result is false
Type:
Properties:
Name Type Description httpStatus
number HTTP status
requestType
string Request type
requestParameter
string Request parameter
responseData
Object response data
instance
Grid Current grid instance
-
focusChange
-
Occurs when focused cell is about to change
Type:
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
-
mousedown
-
Occurs when a mouse button is downed on the Grid.
The event object has all properties copied from the native MouseEvent.Type:
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
-
mouseout
-
Occurs when a mouse pointer is moved off from the Grid.
The event object has all properties copied from the native MouseEvent.Type:
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
-
mouseover
-
Occurs when a mouse pointer is moved onto the Grid.
The properties of the event object include the native MouseEvent object.Type:
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
-
reponse
-
Occurs when the response is received from the server
Type:
Properties:
Name Type Description httpStatus
number HTTP status
requestType
string Request type
requestParameter
string Request parameters
responseData
Object response data
instance
Grid Current grid instance
-
selection
-
Occurs when selecting cells
Type:
Properties:
Name Type Description range
Object Range of selection
Properties
Name Type Description start
Array Info of start cell (ex: [rowKey, columName])
end
Array Info of end cell (ex: [rowKey, columnName])
instance
Grid Current grid instance
-
successReponse
-
Occurs after the response event, if the result is true
Type:
Properties:
Name Type Description httpStatus
number HTTP status
requestType
string Request type
requestParameter
string Request parameter
responseData
Object response data
instance
Grid Current grid instance
-
uncheck
-
Occurs when a checkbox in row header is unchecked
Type:
Properties:
Name Type Description rowKey
number rowKey of the unchecked row
instance
Grid Current grid instance