Back to Devexpress

ASPxClientGridView Members

aspnet-js-aspxclientgridview-dot-underscore-members.md

latest26.9 KB
Original Source

ASPxClientGridView Members

A client-side equivalent of the ASPxGridView object.

Properties

NameDescription
batchEditApiProvides access to the batch editing client API.
nameGets the unique, hierarchically-qualified identifier for the control. Inherited from ASPxClientControlBase.

Methods

NameDescription
AddNewRowAdds a new record.
AdjustControlModifies the control’s size against the control’s container. Inherited from ASPxClientControl.
AdjustControls staticModifies the controls size within the specified container. Inherited from ASPxClientControl.
ApplyFilter(filterExpression)Applies the specified filter expression to the GridView.
ApplyOnClickRowFilterApplies a filter specified in the filter row to the GridView.
ApplySearchPanelFilter(value)Applies the specified search panel filter criterion to grid data.
AutoFilterByColumn(column, val)Applies a filter to the specified data column.
CancelEditCancels all the changes made and switches the GridView to browse mode.
Cast(obj) staticConverts the specified object to the ASPxClientGridView type.
ClearFilterClears the filter expression applied to a client GridView.
CloseFilterControlHides the Filter Control.
CollapseAllCollapses all group rows.
CollapseAllDetailRowsCollapses all detail rows.
CollapseDetailRow(visibleIndex)Collapses the specified detail row.
CollapseRow(visibleIndex)Collapses the specified group row and optionally its child group rows at all nesting levels.
DeleteRow(visibleIndex)Deletes the specified row.
DeleteRowByKey(key)Deletes a row with the specified key value.
ExpandAllExpands all group rows.
ExpandAllDetailRowsExpands all detail rows.
ExpandDetailRow(visibleIndex)Expands the specified detail row.
ExpandRow(visibleIndex)Expands the specified group row and optionally its child group rows at all nesting levels.
ExportTo(format)Exports a grid data to a file in the specified format.
FocusSets input focus to the grid.
FocusEditor(column)Moves focus to the specified edit cell within the edited row.
GetAutoFilterEditor(column)Returns the editor used to edit the value in the auto filter row for the specified data column.
GetClientVisibleObsolete. Returns a value specifying whether a control is displayed. Inherited from ASPxClientControlBase.
GetColumn(columnIndex)Returns the client column that resides at the specified position within the column collection.
GetColumnByField(columnFieldName)Returns the client column which is bound to the specified data source field.
GetColumnById(columnId)Returns the column with the specified unique identifier.
GetColumnCountReturns the number of columns within the client GridView.
GetColumnLayoutReturns an object specifying the grid column’s layout.
GetControlCollection staticReturns a collection of client web control objects. Inherited from ASPxClientControl.
GetEditFormLayoutReturns the edit form layout.
GetEditFormLayoutItemByColumn(column)Returns the form layout item.
GetEditFormLayoutItemOrGroup(name)Returns the form layout item or group.
GetEditor(column)Returns the editor used to edit the specified column’s values.
GetEditValue(column)Returns the value of the specified edit cell.
GetFocusedRowIndexReturns the index of the focused row.
GetHeightReturns the control’s height. Inherited from ASPxClientControl.
GetHorizontalScrollPositionReturns the current horizontal scroll position of the grid’s content.
GetHorzScrollPosObsolete. Returns the current horizontal scroll position of the grid’s content.
GetMainElementReturns an HTML element that is the root of the control’s hierarchy. Inherited from ASPxClientControlBase.
GetPageCountGets the number of pages to which the grid’s data is divided.
GetPageIndexGets the index of the page currently being selected.
GetPageRowValues(fieldNames, onCallback)Returns the row values displayed within the current page.
GetParentControlReturns a client instance of the control that is the parent for a specified control. Inherited from ASPxClientControlBase.
GetPopupEditFormGets the Popup Edit Form.
GetRowIndicesVisibleInViewPort(includePartiallyVisible)Returns a value specifying the indices of the rows visible in the browser’s view port.
GetRowKey(visibleIndex)Returns the key value of the specified data row.
GetRowValues(visibleIndex, fieldNames, onCallback)Returns the value(s) of the specified data source field(s) in the specified row.
GetSelectedFieldValues(fieldNames, onCallback)Returns the values of the specified fields within selected rows.
GetSelectedKeysOnPageReturns the key values of selected rows.
GetSelectedRowCountReturns the number of selected rows.
GetToolbar(index)Returns a grid’s toolbar specified by its index. Inherited from ASPxClientGridBase.
GetToolbarByName(name)Returns a toolbar specified by its name. Inherited from ASPxClientGridBase.
GetTopVisibleIndexReturns the index of the first data row displayed within the GridView’s active page.
GetValuesOnCustomCallback(args, onCallback)Sends a callback to the server and generates the server-side ASPxGridView.CustomDataCallback event.
GetVerticalScrollPositionReturns the current vertical scroll position of the grid’s content.
GetVertScrollPosObsolete. Returns the current vertical scroll position of the grid’s content.
GetVisibleReturns a value specifying whether a control is displayed. Inherited from ASPxClientControlBase.
GetVisibleRowsOnPageReturns the number of rows actually displayed within the active page.
GetWidthReturns the control’s width. Inherited from ASPxClientControl.
GotoPage(pageIndex)Selects the specified page.
GroupBy(column)Groups data by the values of the specified data column.
HideCustomizationWindowCloses the Customization Window.
InCallbackReturns a value that determines whether a callback request sent by a web control is being currently processed on the server side. Inherited from ASPxClientControlBase.
IsCustomizationWindowVisibleIndicates whether the Customization Window is displayed.
IsDataRow(visibleIndex)Indicates whether the specified row is a data row.
IsEditingIndicates whether the grid is in edit mode.
IsGroupRow(visibleIndex)Indicates whether the specified row is a group row.
IsGroupRowExpanded(visibleIndex)Indicates whether the specified group row is expanded.
IsNewRowEditingIndicates whether or not a new row is being edited.
IsRowSelectedOnPage(visibleIndex)Indicates whether the specified row is selected.
MakeRowVisible(visibleIndex)Scrolls the view to the specified row.
MoveColumn(column)Moves the specified column to the specified visual position within the grid and optionally groups or ungroups the grid’s data by this column.
NextPageActivates the next page.
PerformCallback(args)Sends a callback to the server and generates the server-side event, passing the specified argument to it.
PrevPageActivates the previous page.
RefreshUpdates grid data.
SelectAllRowsOnPageSelects or deselects the rows on the current page.
SelectRowOnPage(visibleIndex)Selects or deselects the row specified by its visible index.
SelectRowsSelects or deselects rows.
SelectRowsByKey(keys)Selects or deselects the rows specified by their key values.
SendMessageToAssistiveTechnology(message)Specifies the text that Assistive Technologies (screen readers or braille display, for example) will provide to a user. Inherited from ASPxClientControlBase.
SetClientVisible(visible)Obsolete. Specifies whether a control is displayed. Inherited from ASPxClientControlBase.
SetColumnLayout(columnLayout)Applies the specified column layout to the grid.
SetEditValue(column, value)Sets the value of the specified edit cell.
SetFilterEnabled(isFilterEnabled)Enables or disables the current filter.
SetFixedColumnScrollableRows(scrollableRowSettings)Sets the scrollability of various types of grid rows when the grid displays fixed columns.
SetFocusedRowIndex(visibleIndex)Moves focus to the specified row.
SetHeight(height)

Specifies the control’s height. Note that this method is not in effect for some controls.

Inherited from ASPxClientControl. | | SetHorizontalScrollPosition(position) | Specifies the horizontal scroll position for the grid’s content. | | SetHorzScrollPos(position) | Obsolete. Specifies the horizontal scroll position for the grid’s content. | | SetSearchPanelCustomEditor(editor) | Specifies a custom editor for the search panel on the client side. | | SetVerticalScrollPosition(position) | Specifies the vertical scroll position for the grid’s content. | | SetVertScrollPos(position) | Obsolete. Specifies the vertical scroll position for the grid’s content. | | SetVisible(visible) | Specifies whether a control is displayed. Inherited from ASPxClientControlBase. | | SetWidth(width) | Specifies the control’s width in pixels. Inherited from ASPxClientControl. | | ShowCustomizationDialog | Invokes the Customization Dialog and displays it over the grid. | | ShowCustomizationWindow | Invokes the Customization Window and displays it over the specified HTML element. | | ShowFilterControl | Displays the Filter Control. | | SortBy(column) | Sorts data by the values of the specified data column. | | StartEditRow(visibleIndex) | Switches the grid to edit mode. | | StartEditRowByKey(key) | Switches the grid to edit mode. | | Ungroup(column) | Ungroups data by the values of a specified column. | | UnGroup(column) | Obsolete. Clears grouping applied to the specified column. | | UnselectAllRowsOnPage | Deselects the rows on the current page. | | UnselectFilteredRows | Deselects the rows that match the applied filter criteria. | | UnselectRowOnPage(visibleIndex) | Deselects the row specified by its visible index. | | UnselectRows | Deselects rows. | | UnselectRowsByKey(keys) | Deselects the rows specified by their key values. | | UpdateEdit | Saves changes and switches the grid to browse mode. |

Events

NameDescription
BatchEditChangesCancelingFires before the grid discards changes in batch edit mode.
BatchEditChangesPreviewShowingFires before the grid switches to Preview Changes mode.
BatchEditChangesPreviewShownFires after the grid switches to Preview Changes mode.
BatchEditChangesSavingFires before the grid saves batch changes and allows you to discard them.
BatchEditConfirmShowingFires before the grid shows the Confirmation dialog box.
BatchEditEndEditingFires before a cell/row switches from edit to browse mode.
BatchEditRowChangesCancelingFires when a user clicks a row’s Cancel button in batch edit mode.
BatchEditRowDeletingFires on the client side before a data row is marked as deleted in batch edit mode.
BatchEditRowInsertingFires before a data row is inserted in batch edit mode.
BatchEditRowRecoveringFires on the client side before a data row is recovered in batch edit mode.
BatchEditRowValidatingFires to validate data on the client side and allows you to implement custom validation rules.
BatchEditStartEditingFires when a cell/row switches to batch edit mode and allows you to disable cell/row editing.
BatchEditSummaryDisplayTextFires when a user changes the summary item value. Inherited from ASPxClientGridBase.
BatchEditTemplateCellFocusedEnables you to provide navigation for editors contained in a templated cell in Batch Edit mode.
BeginCallbackOccurs when a callback for server-side processing is initiated.
CallbackErrorFires on the client if any unhandled server error occurs during server-side processing of a callback sent by the ASPxClientGridView.
CellSelectionChangingOccurs when you select or deselect a cell.
ClipboardCellPastingOccurs before a cell is pasted to the control from the clipboard. Allows you to update the pasted data or skip a cell.
ColumnGroupingFires before the grid groups its data by column values.
ColumnMovingEnables you to control column movement.
ColumnResizedOccurs after a column’s width has been changed by an end-user.
ColumnResizingEnables you to prevent columns from being resized.
ColumnSortingFires before the grid sorts its data by column values.
ColumnStartDraggingFires when an end-user starts dragging the column’s header and enables you to cancel this operation.
ContextMenuOccurs after an end-user right clicks in the GridView, and enables you to provide a custom context menu.
ContextMenuItemClickFires on the client side when a context menu item has been clicked.
CustomButtonClickOccurs when a user clicks a custom command button.
CustomizationWindowCloseUpFires after the Customization Window has been closed.
DetailRowCollapsingFires before a detail row is collapsed.
DetailRowExpandingFires before a detail row is expanded.
EndCallbackOccurs on the client after a callback’s server-side processing has been completed.
FocusedCellChangingFires before the focused cell is changed.
FocusedRowChangedFires when the row focus changes.
InitOccurs on the client side after the control has been initialized. Inherited from ASPxClientControlBase.
KeyDownOccurs when a user presses a key while the control has focus. Inherited from ASPxClientGridBase.
KeyPressOccurs when a user presses and releases a key while the control has focus. Inherited from ASPxClientGridBase.
KeyUpOccurs when a user releases the pressed key while the control has focus. Inherited from ASPxClientGridBase.
RowClickFires when a user clicks a data row.
RowCollapsingFires when a user collapses a group row.
RowDblClickFires when a user double-clicks a data row.
RowExpandingFires when a user expands a group row.
RowFocusingFires before a row has been focused.
SelectionChangedFires when the row selection changes.
ToolbarItemClickFires after a toolbar item has been clicked. Inherited from ASPxClientGridBase.

See Also

ASPxClientGridView Class