New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Inheritance: Sys.UI.ControlTelerik.Web.UI.GridTableView

Methods

Cancels the edit mode for all grid items that are switched in edit mode prior to the method call.

JS
cancelAll(): void

Method which cancels the insert action and switches the grid in regular mode.

JS
cancelInsert(): void

Method which cancels the update for the edited table row passed as an argument or the row corresponding to the index passed as an argument. If you have several items switched in edit mode, you can cancel the update for all of them with subsequent calls to this method.

JS
cancelUpdate(Number index): void
Parameters:indexNumber

Method which clears the selected items for the respective GridTableView client object. This method will clear the selected items from the table's child tables (meaningful in hierarchical grid only).

JS
clearSelectedItems(): void

Explicitly collapses an item.

JS
collapseItem(Number index): void
Parameters:indexNumber

Method which will force client rebind of the grid and will refresh its state when a new data source is assigned using the set_dataSource() method. Meaningful in this scenario only.

JS
dataBind(): void

Method which deletes the table row passed as an argument or the row corresponding to the index passed as an argument.

JS
deleteItem(Number index): void
Parameters:indexNumber

Method which deletes all selected items in the grid.

JS
deleteSelectedItems(): void

Deselects the table row passed as an argument or the row corresponding to the index passed as an argument.

JS
deselectItem(Object rowElement): void
Parameters:rowElementObject

Method which switches all GridDataItems in edit mode.

JS
editAllItems(): void

Method which switches the table row passed as an argument or the row corresponding to the index passed as an argument in edit mode. If you set AllowMultiRowEdit to true, you can switch multiple grid items in edit mode with subsequent calls to this method.

JS
editItem(Number index): void
Parameters:indexNumber

Method which switches all selected items in the grid in edit mode.

JS
editSelectedItems(): void

Explicitly expands an item.

JS
expandItem(Number index): void
Parameters:indexNumber

Exports the grid to CSV format (comma-separated values).

JS
exportToCsv(): void

Exports the grid to MS Excel 2003 or later

JS
exportToExcel(): void

Exports the grid to PDF format.

JS
exportToPdf(): void

Exports the grid to a Word document

JS
exportToWord(): void

Method which extracts the key values (added to the ClientDataKeyNames collection of the master/detail table) from the edited table row passed as an argument or the row corresponding to the index passed as an argument. The values will be fetched purely client-side and the data will be returned in an object array which can be traversed to get each individual data entry.

JS
extractKeysFromItem(Number index): Object
Parameters:indexNumberReturns:

Object

Method which extracts the old values from the edited table row passed as an argument or the row corresponding to the index passed as an argument. The values will be fetched purely client-side and the data will be returned in an object array which can be traversed to get each individual data entry.

JS
extractOldValuesFromItem(Number index): Object
Parameters:indexNumberReturns:

Object

Method which extracts the new values from the edited table row passed as an argument or the row corresponding to the index passed as an argument. The values will be fetched purely client-side and the data will be returned in an object array which can be traversed to get each individual data entry.

JS
extractValuesFromItem(Number index): Object
Parameters:indexNumberReturns:

Object

Method which triggers filter command for the column with UniqueName (set on the server) passed as a first argument. The second argument should be value to compare (or two values separated by [space] for between filter pattern) or an empty string for EqualTo, NoFilter, IsNull, etc. The last third argument has to be a value from the Telerik.Web.UI.GridFilterFunction enumeration which internally recognizes the filter criteria that should be applied. All server-side filtering capabilities of RadGrid are applicable here as well. See the topic describing the fireCommand method for further details.

JS
filter(String colUniqueName, String valueToCompare, String filterFunction, Boolean shouldUpdateFilterControl): void
Parameters:colUniqueNameStringvalueToCompareStringfilterFunctionStringshouldUpdateFilterControlBoolean

Method which triggers specific command for the grid when executed. The method is called for the GridTableView client instance and its arguments depend on the command which will be processed.

JS
fireCommand(String comandName, String commandArgument): void
Parameters:comandNameStringcommandArgumentString

Returns a boolean value indicating whether multi-column sorting is enabled for the grid instance

JS
get_allowMultiColumnSorting(): Boolean
Returns:

Boolean

Returns a one-dimensional array which holds the key fields set through the ClientDataKeyNames property of GridTableView on the server

JS
get_clientDataKeyNames(): Array
Returns:

Array

Returns a collection of c

JS
get_columns(): Array
Returns:

Array

Returns the current page index

JS
get_currentPageIndex(): Number
Returns:

Number

Retuens a collection of all data items for the respective GridTableView instance.

JS
get_dataItems(): Array
Returns:

Array

Array

JS
get_editItems(): void

Returns HTML table which represents the respective table for the GridTableView object rendered on the client.

JS
get_element(): Element
Returns:

Element

A collection of Telerik.Web.UI.GridFilterExpression objects. Represents the filter expressions applied for the grid instance. The toString() javascript method executed over this collection will return SQL string representation of all filter expressions concatenated by "AND" reserved words. While filter expressions toString() method will create SQL syntax representing current grid filtering, you can also take advantage of the toDynamicLinq() method which will create LINQ expression that can be used directly with Dynamic LINQ library. Furthermore, you can also utilize the toList() method in order to pass an array of items (representing the filter expression elements) to the server and operate with them using GridFilterExpression server object.

JS
get_filterExpressions(): Telerik.Web.UI.GridFilterExpressions
Returns:

Telerik.Web.UI.GridFilterExpressions

HTML element

JS
get_insertItem(): void

Returns a Boolean value, specifying whether the filtering item is visible

JS
get_isFilterItemVisible(): Boolean
Returns:

Boolean

Returns a Boolean property. Gets a value indicating if the GridTableView is currently in insert mode.

JS
get_isItemInserted(): Boolean
Returns:

Boolean

Returns a string which represents the Name property (set on the server) for the corresponding GridTableView client object. Can be used to identify table in grid hierarchy client-side

JS
get_name(): String
Returns:

String

Returns a property which is of type RadGrid and present the parent of the current object.

JS
get_owner(): Object
Returns:

Object

Returns the page count for the respective GridTableView object, i.e. the number of pages

JS
get_pageCount(): Number
Returns:

Number

Returns the page size for the respective GridTableView object

JS
get_pageSize(): Number
Returns:

Number

If called from a nested GridTableView returns the parent item for the current nested hierarchical GridTableView; returns null if called from the MasterTableView.

JS
get_parentRow(): Object
Returns:

Object

If called from a nested GridTableView returns the parent GridTableView in the grid hierarchy; returns null if called from the MasterTableView.

JS
get_parentView(): Object
Returns:

Object

Returns a collection of all selected items (of type GridDataItem) for the respective GridTableView instance. This collection will include the selected items from the table's child tables (meaningful in hierarchical grid only).

JS
get_selectedItems(): Array
Returns:

Array

A collection of Telerik.Web.UI.GridSortExpression objects. Represents the sort expressions applied for the grid instance. The toString() javascript method executed over this collection will return coma separated string of all expressions (in case of AllowMultiColumnSorting) or a single sort expression if multi-column sorting is disabled. You can also utilize the toList() method in order to pass an array of items (representing the sort expressions applied) to the server and operate with them using GridSortExpression server object. Each sort expression (of type Telerik.Web.UI.GridSortExpression) has fieldName and sortOrder properties which hold the DataField of the sorted column and the sort direction (Ascending, Descending or None). To retrieve the values from these properties use the get_fieldName() and get_sortOrder() properties of the corresponding GridSortExpression.

JS
get_sortExpressions(): Telerik.Web.UI.GridSortExpressions
Returns:

Telerik.Web.UI.GridSortExpressions

Returns the table filter row element

JS
get_tableFilterRow(): Object
Returns:

Object

Gets the virtual item count value for the respective GridTableView object. Applies to client-side RadGrid binding only.

JS
get_virtualItemCount(): Number
Returns:

Number

Returns a cell specified by a row and a column unique name.

JS
getCellByColumnUniqueName(Telerik.Web.UI.GridDataItem rowObject, String uniqueName): Object
Parameters:rowObjectTelerik.Web.UI.GridDataItemuniqueNameStringReturns:

Object

Returns a column, specified by the argument of the function

JS
getColumnByUniqueName(String uniqueName): Telerik.Web.UI.GridColumn
Parameters:uniqueNameStringReturns:

Telerik.Web.UI.GridColumn

Returns the unique name of the column by given header row and cell index passed as first and second arguments.

JS
getColumnUniqueNameByCellIndex(Object rowEl, Number index): Object
Parameters:rowElObjectindexNumberReturns:

Object

The method will automatically send a result (holding all filter and sort expressions in appropriate format and will apply paging on server using skip and top) to the query method of the ADO.NET Data Service. The resulting value from the getDataServiceQuery(entityName) method will generate an expression that can be recognized by the corresponding data service.

JS
getDataServiceQuery(String entityName): Object
Parameters:entityNameStringReturns:

Object

Method which groups the grid by the column with UniqueName specified as an argument. All server grouping capabilities of RadGrid are applicable for this case as well.

JS
groupColumn(String colUniqueName): void
Parameters:colUniqueNameString

Explicitly hides a column.

JS
hideColumn(Number index): void
Parameters:indexNumber

Hides the filter item for the tableview instance

JS
hideFilterItem(): void

Explicitly hides an item.

JS
hideItem(Number index): void
Parameters:indexNumber

Method which inserts new table row to the grid. The new data will be taken from the insertion form editors fields.

JS
insertItem(): void

Moves a column one position to the left.

JS
moveColumnToLeft(Number columnIndex): void
Parameters:columnIndexNumber

Moves a column one position to the right.

JS
moveColumnToRight(Number columnIndex): void
Parameters:columnIndexNumber

Method which triggers paging action with page command passed as an argument. All server-side paging capabilities of RadGrid are applicable here as well. See the topic describing the fireCommand method for further details.

JS
page(String pageCommand): void
Parameters:pageCommandString

Forces a rebind of the grid and will refresh its state using internally the fireCommand() client-side method. Will invoke a postback for server-side bound grids.

JS
rebind(): void

Reorders two columns, specified by the two parameters to the function

JS
reorderColumns(String columnName1, String columnName2): void
Parameters:columnName1StringcolumnName2String

Resizes a row in the grid to a specified height

JS
resizeColumn(Number columnIndex, Number columnWidth): void
Parameters:columnIndexNumbercolumnWidthNumber

Resizes a row in the grid to a specified height

JS
resizeItem(Number rowIndex, Object rowHeight): void
Parameters:rowIndexNumberrowHeightObject

Selects all items in the GridTableView for which the method is invoked.

JS
selectAllItems(): void

Selects the table row passed as an argument or the row corresponding to the index passed as an argument.

JS
selectItem(Object rowElement): void
Parameters:rowElementObject

Sets a boolean value indicating whether multi-column sorting is enabled for the grid instance

JS
set_allowMultiColumnSorting(Boolean size): void
Parameters:sizeBoolean

Sets the current page index

JS
set_currentPageIndex(Number index): void
Parameters:indexNumber

Method which can be used to assign data source for the corresponding GridTableView client instance. This data source should be of JSON format which can be serialized by a web service or page method.

JS
set_dataSource(Object dataSource): void
Parameters:dataSourceObject

Sets the page size for the respective GridTableView object

JS
set_pageSize(Number size): void
Parameters:sizeNumber

Sets the virtual item count value for the respective GridTableView object. Applies to client-side RadGrid binding only.

JS
set_virtualItemCount(Number size): void
Parameters:sizeNumber

Explicitly shows a column.

JS
showColumn(Number index): void
Parameters:indexNumber

Shows the filter item for the tableview instance

JS
showFilterItem(): void

Method which switches the grid in insert mode and displays the insertion form.

JS
showInsertItem(): void

Explicitly shows an item.

JS
showItem(Number index): void
Parameters:indexNumber

Method which triggers sort command for the column with DataField (set on the server) passed as an argument. If you set AllowMultiColumnSorting to true server-side, each subsequent call to this method will sort the corresponding column. All server-side sorting capabilities of RadGrid are applicable here as well.

JS
sort(String sortExpression): void
Parameters:sortExpressionString

Swaps the two columns, the names of which are passed as arguments to the method

JS
swapColumns(String columnName1, String columnName2): void
Parameters:columnName1StringcolumnName2String

Method which performs ungroup action for the column with UniqueName specified as an argument.

JS
ungroupColumn(String colUniqueName): void
Parameters:colUniqueNameString

Method which updates all edited items in the grid. The new data will be taken from the edit form editors.

JS
updateEditedItems(): void

Method which updates the edited table row passed as an argument or the row corresponding to the index passed as an argument. If you have several items switched in edit mode, you can update all of them with subsequent calls to this method. The updated data will be taken from the edit form editors.

JS
updateItem(Number index): void
Parameters:indexNumber
Not finding the help you need?
Contact Support