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

A PivotGridField is the main logic unit that relates the content of the pivot grid to fields in the DataSource.

The PivotGridField defines the properties and methods that are common to all field types in RadPivotGrid.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class PivotGridField : StateManager, IMarkableStateManager, IStateManager, IComparable, IDisposable, INamingContainer

Inheritance: objectStateManagerPivotGridField

Derived Classes: PivotGridAggregateFieldPivotGridGroupFieldPivotGridReportFilterField

Implements: IComparableIDisposableIMarkableStateManagerINamingContainerIStateManager

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
protected PivotGridField()

Properties

Gets or sets the field's display caption.

C#
public string Caption { get; set; }

Style of the cells in the the grid, corresponding to the field.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual Style CellStyle { get; }

Gets or sets the field name from the specified data source to bind to the PivotGridField.

C#
public string DataField { get; set; }
Property Value:

A string, specifying the data field from the data source, from which to bind the PivotGridField.

Gets or sets the string that specifies the display format for all cells which belongs to this field.

C#
public virtual string DataFormatString { get; set; }
Property Value:

A string that specifies the display format all cells which belongs to this field.

C#
[Browsable(false)]
public string FieldType { get; }

Gets or sets if the field will be hidden which exlude it from the pivot table calculations.

C#
public bool IsHidden { get; set; }
Property Value:

Determines if the field will be hidden which exlude it from the pivot table calculations.

C#
[Browsable(false)]
public RadPivotGrid Owner { get; }

Gets or sets a referance of the PivotGridFieldRenderingControl that allow you to control how the field is rendered.

C#
[Browsable(false)]
public PivotGridFieldRenderingControl RenderingControl { get; set; }

Gets or sets a referance instance of the PivotGridSortOrder enum.

C#
public PivotGridSortOrder SortOrder { get; set; }

Gets or sets the string that specifies the display format for all total cells which belongs to this field.

C#
public virtual string TotalFormatString { get; set; }
Property Value:

A string that specifies the display format all cells which belongs to this field.

Each column in Telerik RadPivotGrid has an UniqueName property (string). This property is assigned automatically by the designer (or the first time you want to access the columns if they are built dynamically).

C#
[Browsable(true)]
public virtual string UniqueName { get; set; }

Gets or sets the order indexes for fields displayed within the same zone.

C#
public virtual int ZoneIndex { get; set; }

Gets the zone type of the field which determines in which zone the field is positioned.

C#
[Browsable(false)]
public PivotGridFieldZoneType ZoneType { get; }
Property Value:

The zone type of the field which determines in which zone the field is positioned.

Methods

C#
public void ClearRenderControl()
C#
public int CompareTo(object obj)
Parameters:objobjectReturns:

int

Implements: IComparable.CompareTo(object)

C#
public void Dispose()

Implements: IDisposable.Dispose()

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool
C#
protected virtual string GenerateUniqueName()
Returns:

string

C#
protected string GenerateUniqueNameBase(string Base)
Parameters:BasestringReturns:

string

C#
public int GetLevel()
Returns:

int

C#
protected bool IsUniqueName(string testName)
Parameters:testNamestringReturns:

bool

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected abstract void OnDescriptionInfoChanged()
C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
public void SetDescriptionInfo()

Sets the IsHidden property to false and sets the ZoneIndex so the field will be placed as last in the zone

C#
public void Show()
C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()