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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class RadDataPagerButtonFieldBase : RadDataPagerField, IMarkableStateManager, IStateManager

Inheritance: objectStateManagerRadDataPagerFieldRadDataPagerButtonFieldBase

Derived Classes: RadDataPagerButtonField

Implements: IMarkableStateManagerIStateManager

Inherited Members RadDataPagerField.InitializeFieldControls(RadDataPagerFieldItem)RadDataPagerField.PrepareSkinnableControlProperties(ISkinnableControl)RadDataPagerField.ToString()RadDataPagerField.SEOPagingLinkBuilder(string)RadDataPagerField.PrepareQueryString(HttpRequest, StringBuilder)RadDataPagerField.BuildRoutingNavigationURL(HttpRequest, StringBuilder, int)RadDataPagerField.OnFieldChanged()RadDataPagerField.OwnerRadDataPagerField.PagerTypeRadDataPagerField.HorizontalPositionRadDataPagerField.RouteDictionaryRadDataPagerField.VisibleRadDataPagerField.HiddenXsRadDataPagerField.HiddenSmRadDataPagerField.HiddenMdRadDataPagerField.HiddenLgRadDataPagerField.HiddenXlRadDataPagerField.HorizontalPositionXsRadDataPagerField.HorizontalPositionSmRadDataPagerField.HorizontalPositionMdRadDataPagerField.HorizontalPositionLgRadDataPagerField.HorizontalPositionXlStateManager.TrackViewState()StateManager.LoadViewState(object)StateManager.SaveViewState()StateManager.IsTrackingViewStateStateManager.ViewStateobject.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
protected RadDataPagerButtonFieldBase()

Fields

C#
protected const string CurrentPagerButtonClassName = "rdpCurrentPage"
C#
protected const string FirstButtonClassName = "rdpPageFirst"
C#
protected const string LastButtonClassName = "rdpPageLast"
C#
protected const string NextButtonClassName = "rdpPageNext"
C#
protected const string PrevButtonClassName = "rdpPagePrev"

Properties

This property specifies the type of the buttons for current pager field. Default value LinkButton.

C#
[TypeConverter(typeof(EnumConverter))]
protected PagerFieldButtonType ButtonType { get; set; }

Methods

Creates button control from one of the following type: LinkButton, PushButton, ImageButton or HyperLink if AllowSEOPaging is set to "true". Button Enabled state will be validated depending on current page index.

C#
protected WebControl CreateButtonField(PagerFieldButtonType type, string text, string toolTip, string commandName, string commandArgument, string className, string imageUrl, string hiddenSpanText)
Parameters:typePagerFieldButtonType

PagerFieldButtonType enumerator

textstring

Text shown as content the button control

toolTipstring

Tooltip of the button

commandNamestring

Command that button triggers

commandArgumentstring

Command argument which will be passed along with CommandName

classNamestring

CssClass that will be applied on the button

imageUrlstring

The image url that will be applied on the button if it is of type Next, Prev, First, Last

hiddenSpanTextstring

Text of the hidden span

Returns:

WebControl

Returns button control of type: LinkButton, PushButton, ImageButton or HyperLink if SEO paging.

Ensures button Enabled property. If button command argumetn is same as current page, button will be disabled.

C#
protected virtual WebControl EnsureEnableState(WebControl button, string commandArgument)
Parameters:buttonWebControl

Button instance to be validated.

commandArgumentstring

Command argument for the button.

Returns:

WebControl

Returns same button with Enabled property set.

Get reference to image from embeded resources. Internally used by PrepareSEOButtonContent method.

C#
protected string GetResolvedImageUrl(string imageName)
Parameters:imageNamestringReturns:

string

Formats the text depending on PagerFieldButtonType. Text for LinkButton is wrapped with span tag.

C#
protected virtual string PrepareTextFormat(PagerFieldButtonType type, string text)
Parameters:typePagerFieldButtonType

Value from PagerFieldButtonType enum.

textstring

Text to be formatted.

Returns:

string

Returns string representing content of button.