ASPxClientVerticalGrid.GetRecordValues(visibleIndex, fieldNames, onCallback) Method
In This Article
Returns the values of the specified data source fields within the specified record.
#Declaration
TypeScript
GetRecordValues(
visibleIndex: number,
fieldNames: string,
onCallback: ASPxClientVerticalGridValuesCallback
): void
#Parameters
Name | Type | Description |
---|---|---|
visible |
number | The record’s visible index. |
field |
string | The names of data source fields separated using a semicolon, whose values within the specified record are returned. |
on |
ASPx |
An ASPx |
#Remarks
Call the client-side GetRecordValues
mathod to obtain the value of the specified cell.
protected void ASPxVerticalGrid1_CustomCallback(object sender, DevExpress.Web.ASPxVerticalGridCustomCallbackEventArgs e) {
if (!String.IsNullOrEmpty(e.Parameters)) {
var grid = (ASPxVerticalGrid)sender;
grid.Selection.UnselectAll();
grid.Selection.SelectRecordByKey(grid.GetRecordValues(Convert.ToInt32(e.Parameters), grid.KeyFieldName));
}
}
See Also