ASPxPivotGrid.GetFieldValueByIndex(PivotGridField, Int32) Method
Returns the specified field’s value by its index.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public object GetFieldValueByIndex(
PivotGridField field,
int fieldValueIndex
)
#Parameters
Name | Type | Description |
---|---|---|
field | Pivot |
A Pivot |
field |
Int32 | An integer value that identifies the required field value. |
#Returns
Type | Description |
---|---|
Object | An object that represents the specified field’s value. |
#Remarks
The GetFieldValueByIndex method can be used when handling the client-side ASPxClientPivotGrid.PopupMenuItemClick event.
Tip
Consider using the ASPx
To obtain the field value for which the popup menu has been invoked, follow the steps below:
- handle the ASPxClientPivotGrid.PopupMenuItemClick event;
- send a callback to the server by calling the ASPxClientPivotGrid.PerformCallback method. Pass the field identifier (ASPxClientPivotMenuItemClickEventArgs.FieldID) and field value index (ASPxClientPivotMenuItemClickEventArgs.FieldValueIndex) as a string of arguments;
- handle the server-side ASPxPivotGrid.CustomCallback event, parse the passed information and obtain the required field value via the
ASPxPivotGrid.GetFieldValueByIndex
method.