BootstrapGridView Class
Declaration
class BootstrapGridView extends BootstrapGridBase
IMPORTANT
Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.
Properties
batchEditApi Property
Declaration
readonly batchEditApi: BootstrapGridViewBatchEditApi | null
Property Value
Methods
addNewRow Method
Declaration
addNewRow(): void
applyFilter(filterExpression) Method
Declaration
applyFilter(
filterExpression: string
): void
Parameters
Name |
Type |
filterExpression |
string |
applyOnClickRowFilter Method
Declaration
applyOnClickRowFilter(): void
applySearchPanelFilter(value) Method
Declaration
applySearchPanelFilter(
value: string
): void
Parameters
autoFilterByColumn(column, val) Method
Declaration
autoFilterByColumn(
column: BootstrapGridViewColumn,
val: string
): void
Parameters
autoFilterByColumn(columnFieldNameOrId, val) Method
Declaration
autoFilterByColumn(
columnFieldNameOrId: string,
val: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
val |
string |
autoFilterByColumn(columnIndex, val) Method
Declaration
autoFilterByColumn(
columnIndex: number,
val: string
): void
Parameters
Name |
Type |
columnIndex |
number |
val |
string |
cancelEdit Method
Declaration
cancelEdit(): void
clearFilter Method
Declaration
clearFilter(): void
closeFilterControl Method
Declaration
closeFilterControl(): void
collapseAll Method
Declaration
collapseAll(): void
collapseAllDetailRows Method
Declaration
collapseAllDetailRows(): void
collapseDetailRow(visibleIndex) Method
Declaration
collapseDetailRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
collapseRow(visibleIndex) Method
Declaration
collapseRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
collapseRow(visibleIndex, recursive) Method
Declaration
collapseRow(
visibleIndex: number,
recursive: boolean
): void
Parameters
Name |
Type |
visibleIndex |
number |
recursive |
boolean |
deleteRow(visibleIndex) Method
Declaration
deleteRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
deleteRowByKey(key) Method
Declaration
deleteRowByKey(
key: any
): void
Parameters
expandAll Method
Declaration
expandAll(): void
expandAllDetailRows Method
Declaration
expandAllDetailRows(): void
expandDetailRow(visibleIndex) Method
Declaration
expandDetailRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
expandRow(visibleIndex) Method
Declaration
expandRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
expandRow(visibleIndex, recursive) Method
Declaration
expandRow(
visibleIndex: number,
recursive: boolean
): void
Parameters
Name |
Type |
visibleIndex |
number |
recursive |
boolean |
focus Method
Declaration
focus(): void
focusEditor(column) Method
Declaration
focusEditor(
column: BootstrapGridViewColumn
): void
Parameters
focusEditor(columnFieldNameOrId) Method
Declaration
focusEditor(
columnFieldNameOrId: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
focusEditor(columnIndex) Method
Declaration
focusEditor(
columnIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
getAutoFilterEditor(column) Method
Declaration
getAutoFilterEditor(
column: BootstrapGridViewColumn
): any
Parameters
Returns
getAutoFilterEditor(columnFieldNameOrId) Method
Declaration
getAutoFilterEditor(
columnFieldNameOrId: string
): any
Parameters
Name |
Type |
columnFieldNameOrId |
string |
Returns
getAutoFilterEditor(columnIndex) Method
Declaration
getAutoFilterEditor(
columnIndex: number
): any
Parameters
Name |
Type |
columnIndex |
number |
Returns
getColumn(columnIndex) Method
Declaration
getColumn(
columnIndex: number
): BootstrapGridViewColumn | null
Parameters
Name |
Type |
columnIndex |
number |
Returns
getColumnByField(columnFieldName) Method
Declaration
getColumnByField(
columnFieldName: string
): BootstrapGridViewColumn | null
Parameters
Name |
Type |
columnFieldName |
string |
Returns
getColumnById(columnId) Method
Declaration
getColumnById(
columnId: string
): BootstrapGridViewColumn | null
Parameters
Name |
Type |
columnId |
string |
Returns
getColumnCount Method
Declaration
getColumnCount(): number
Returns
getColumnLayout Method
Declaration
getColumnLayout(): any
Returns
getEditor(column) Method
Declaration
getEditor(
column: BootstrapGridViewColumn
): BootstrapClientEdit
Parameters
Returns
getEditor(columnFieldNameOrId) Method
Declaration
getEditor(
columnFieldNameOrId: string
): BootstrapClientEdit
Parameters
Name |
Type |
columnFieldNameOrId |
string |
Returns
getEditor(columnIndex) Method
Declaration
getEditor(
columnIndex: number
): BootstrapClientEdit
Parameters
Name |
Type |
columnIndex |
number |
Returns
getEditValue(column) Method
Declaration
getEditValue(
column: BootstrapGridViewColumn
): string
Parameters
Returns
getEditValue(columnFieldNameOrId) Method
Declaration
getEditValue(
columnFieldNameOrId: string
): string
Parameters
Name |
Type |
columnFieldNameOrId |
string |
Returns
getEditValue(columnIndex) Method
Declaration
getEditValue(
columnIndex: number
): string
Parameters
Name |
Type |
columnIndex |
number |
Returns
getFocusedCell Method
Declaration
getFocusedCell(): BootstrapGridViewCellInfo | null
Returns
getFocusedRowIndex Method
Declaration
getFocusedRowIndex(): number
Returns
getHorizontalScrollPosition(): number
getPageCount Method
Declaration
getPageCount(): number
Returns
getPageIndex Method
Declaration
getPageIndex(): number
Returns
getPopupEditForm(): BootstrapPopupControl | null
getRowIndicesVisibleInViewPort(includePartiallyVisible) Method
Declaration
getRowIndicesVisibleInViewPort(
includePartiallyVisible: boolean
): number[]
Parameters
Name |
Type |
includePartiallyVisible |
boolean |
Returns
getRowKey(visibleIndex) Method
Declaration
getRowKey(
visibleIndex: number
): string
Parameters
Name |
Type |
visibleIndex |
number |
Returns
getSelectedKeysOnPage Method
Declaration
getSelectedKeysOnPage(): any[]
Returns
getSelectedRowCount Method
Declaration
getSelectedRowCount(): number
Returns
getTopVisibleIndex Method
Declaration
getTopVisibleIndex(): number
Returns
getVerticalScrollPosition(): number
getVisibleRowsOnPage Method
Declaration
getVisibleRowsOnPage(): number
Returns
gotoPage(pageIndex) Method
Declaration
gotoPage(
pageIndex: number
): void
Parameters
Name |
Type |
pageIndex |
number |
groupBy(column) Method
Declaration
groupBy(
column: BootstrapGridViewColumn
): void
Parameters
groupBy(column, groupIndex) Method
Declaration
groupBy(
column: BootstrapGridViewColumn,
groupIndex: number
): void
Parameters
groupBy(column, groupIndex, sortOrder) Method
Declaration
groupBy(
column: BootstrapGridViewColumn,
groupIndex: number,
sortOrder: string
): void
Parameters
groupBy(columnFieldNameOrId) Method
Declaration
groupBy(
columnFieldNameOrId: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
groupBy(columnFieldNameOrId, groupIndex) Method
Declaration
groupBy(
columnFieldNameOrId: string,
groupIndex: number
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
groupIndex |
number |
groupBy(columnFieldNameOrId, groupIndex, sortOrder) Method
Declaration
groupBy(
columnFieldNameOrId: string,
groupIndex: number,
sortOrder: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
groupIndex |
number |
sortOrder |
string |
groupBy(columnIndex) Method
Declaration
groupBy(
columnIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
groupBy(columnIndex, groupIndex) Method
Declaration
groupBy(
columnIndex: number,
groupIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
groupIndex |
number |
groupBy(columnIndex, groupIndex, sortOrder) Method
Declaration
groupBy(
columnIndex: number,
groupIndex: number,
sortOrder: string
): void
Parameters
Name |
Type |
columnIndex |
number |
groupIndex |
number |
sortOrder |
string |
hideCustomizationWindow Method
Declaration
hideCustomizationWindow(): void
isCustomizationWindowVisible Method
Declaration
isCustomizationWindowVisible(): boolean
Returns
isDataRow(visibleIndex) Method
Declaration
isDataRow(
visibleIndex: number
): boolean
Parameters
Name |
Type |
visibleIndex |
number |
Returns
isEditing Method
Declaration
isEditing(): boolean
Returns
isGroupRow(visibleIndex) Method
Declaration
isGroupRow(
visibleIndex: number
): boolean
Parameters
Name |
Type |
visibleIndex |
number |
Returns
isGroupRowExpanded(visibleIndex) Method
Declaration
isGroupRowExpanded(
visibleIndex: number
): boolean
Parameters
Name |
Type |
visibleIndex |
number |
Returns
isNewRowEditing Method
Declaration
isNewRowEditing(): boolean
Returns
isRowSelectedOnPage(visibleIndex) Method
Declaration
isRowSelectedOnPage(
visibleIndex: number
): boolean
Parameters
Name |
Type |
visibleIndex |
number |
Returns
makeRowVisible(visibleIndex) Method
Declaration
makeRowVisible(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
nextPage Method
Declaration
nextPage(): void
off<K> Method
Declaration
off<K extends keyof BootstrapGridViewEventMap>(
eventName?: K,
callback?: (this: BootstrapGridView,
args?: BootstrapGridViewEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapGridView, args?: BootstrapGridViewEventMap[K]) => void |
Type Parameters
Returns
on<K>(eventName, callback) Method
Declaration
on<K extends keyof BootstrapGridViewEventMap>(
eventName: K,
callback: (this: BootstrapGridView,
args?: BootstrapGridViewEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapGridView, args?: BootstrapGridViewEventMap[K]) => void |
Type Parameters
Returns
once<K>(eventName, callback) Method
Declaration
once<K extends keyof BootstrapGridViewEventMap>(
eventName: K,
callback: (this: BootstrapGridView,
args?: BootstrapGridViewEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapGridView, args?: BootstrapGridViewEventMap[K]) => void |
Type Parameters
Returns
performCallback(
data: any
): Promise<void>
performCallback(
data: any,
onSuccess: () => void
): void
Name |
Type |
data |
any |
onSuccess |
() => void |
prevPage Method
Declaration
prevPage(): void
refresh Method
Declaration
refresh(): void
selectAllRowsOnPage Method
Declaration
selectAllRowsOnPage(): void
selectRowOnPage(visibleIndex) Method
Declaration
selectRowOnPage(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
selectRowOnPage(visibleIndex, selected) Method
Declaration
selectRowOnPage(
visibleIndex: number,
selected: boolean
): void
Parameters
Name |
Type |
visibleIndex |
number |
selected |
boolean |
selectRows Method
Declaration
selectRows(): void
selectRowsByKey(key) Method
Declaration
selectRowsByKey(
key: any
): void
Parameters
selectRowsByKey(key, selected) Method
Declaration
selectRowsByKey(
key: any,
selected: boolean
): void
Parameters
Name |
Type |
key |
any |
selected |
boolean |
selectRowsByKey(keys) Method
Declaration
selectRowsByKey(
keys: any[]
): void
Parameters
selectRowsByKey(keys, selected) Method
Declaration
selectRowsByKey(
keys: any[],
selected: boolean
): void
Parameters
Name |
Type |
keys |
any[] |
selected |
boolean |
setColumnLayout(columnLayout) Method
Declaration
setColumnLayout(
columnLayout: any
): void
Parameters
Name |
Type |
columnLayout |
any |
setEditValue(column, value) Method
Declaration
setEditValue(
column: BootstrapGridViewColumn,
value: string
): void
Parameters
setEditValue(columnFieldNameOrId, value) Method
Declaration
setEditValue(
columnFieldNameOrId: string,
value: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
value |
string |
setEditValue(columnIndex, value) Method
Declaration
setEditValue(
columnIndex: number,
value: string
): void
Parameters
Name |
Type |
columnIndex |
number |
value |
string |
setFilterEnabled(isFilterEnabled) Method
Declaration
setFilterEnabled(
isFilterEnabled: boolean
): void
Parameters
Name |
Type |
isFilterEnabled |
boolean |
setFixedColumnScrollableRows(
scrollableRowSettings: any
): void
Name |
Type |
scrollableRowSettings |
any |
setFocusedCell(rowVisibleIndex, columnIndex) Method
Declaration
setFocusedCell(
rowVisibleIndex: number,
columnIndex: number
): void
Parameters
Name |
Type |
rowVisibleIndex |
number |
columnIndex |
number |
setFocusedRowIndex(visibleIndex) Method
Declaration
setFocusedRowIndex(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
setHorizontalScrollPosition(
position: number
): void
Name |
Type |
position |
number |
setSearchPanelCustomEditor(editor) Method
Declaration
setSearchPanelCustomEditor(
editor: BootstrapClientEdit
): void
Parameters
setVerticalScrollPosition(
position: number
): void
Name |
Type |
position |
number |
showCustomizationDialog Method
Declaration
showCustomizationDialog(): void
showCustomizationWindow Method
Declaration
showCustomizationWindow(): void
showFilterControl Method
Declaration
showFilterControl(): void
sortBy(column) Method
Declaration
sortBy(
column: BootstrapGridViewColumn
): void
Parameters
sortBy(column, sortOrder) Method
Declaration
sortBy(
column: BootstrapGridViewColumn,
sortOrder: string
): void
Parameters
sortBy(column, sortOrder, reset) Method
Declaration
sortBy(
column: BootstrapGridViewColumn,
sortOrder: string,
reset: boolean
): void
Parameters
sortBy(column, sortOrder, reset, sortIndex) Method
Declaration
sortBy(
column: BootstrapGridViewColumn,
sortOrder: string,
reset: boolean,
sortIndex: number
): void
Parameters
sortBy(columnFieldNameOrId) Method
Declaration
sortBy(
columnFieldNameOrId: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
sortBy(columnFieldNameOrId, sortOrder) Method
Declaration
sortBy(
columnFieldNameOrId: string,
sortOrder: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
sortOrder |
string |
sortBy(columnFieldNameOrId, sortOrder, reset) Method
Declaration
sortBy(
columnFieldNameOrId: string,
sortOrder: string,
reset: boolean
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
sortOrder |
string |
reset |
boolean |
sortBy(columnFieldNameOrId, sortOrder, reset, sortIndex) Method
Declaration
sortBy(
columnFieldNameOrId: string,
sortOrder: string,
reset: boolean,
sortIndex: number
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
sortOrder |
string |
reset |
boolean |
sortIndex |
number |
sortBy(columnIndex) Method
Declaration
sortBy(
columnIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
sortBy(columnIndex, sortOrder) Method
Declaration
sortBy(
columnIndex: number,
sortOrder: string
): void
Parameters
Name |
Type |
columnIndex |
number |
sortOrder |
string |
sortBy(columnIndex, sortOrder, reset) Method
Declaration
sortBy(
columnIndex: number,
sortOrder: string,
reset: boolean
): void
Parameters
Name |
Type |
columnIndex |
number |
sortOrder |
string |
reset |
boolean |
sortBy(columnIndex, sortOrder, reset, sortIndex) Method
Declaration
sortBy(
columnIndex: number,
sortOrder: string,
reset: boolean,
sortIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
sortOrder |
string |
reset |
boolean |
sortIndex |
number |
startEditRow(visibleIndex) Method
Declaration
startEditRow(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
startEditRowByKey(key) Method
Declaration
startEditRowByKey(
key: any
): void
Parameters
ungroup(column) Method
Declaration
ungroup(
column: BootstrapGridViewColumn
): void
Parameters
ungroup(columnFieldNameOrId) Method
Declaration
ungroup(
columnFieldNameOrId: string
): void
Parameters
Name |
Type |
columnFieldNameOrId |
string |
ungroup(columnIndex) Method
Declaration
ungroup(
columnIndex: number
): void
Parameters
Name |
Type |
columnIndex |
number |
unselectAllRowsOnPage Method
Declaration
unselectAllRowsOnPage(): void
unselectFilteredRows Method
Declaration
unselectFilteredRows(): void
unselectRowOnPage(visibleIndex) Method
Declaration
unselectRowOnPage(
visibleIndex: number
): void
Parameters
Name |
Type |
visibleIndex |
number |
unselectRows Method
Declaration
unselectRows(): void
unselectRowsByKey(key) Method
Declaration
unselectRowsByKey(
key: any
): void
Parameters
unselectRowsByKey(keys) Method
Declaration
unselectRowsByKey(
keys: any[]
): void
Parameters
updateEdit Method
Declaration
updateEdit(): void