Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class RadDataPagerButtonFieldBase : RadDataPagerField, IMarkableStateManager, IStateManager
Inheritance: objectStateManagerRadDataPagerFieldRadDataPagerButtonFieldBase
Derived Classes:
Implements:
Inherited Members
Constructors
protected RadDataPagerButtonFieldBase()
Fields
protected const string CurrentPagerButtonClassName = "rdpCurrentPage"
protected const string FirstButtonClassName = "rdpPageFirst"
protected const string LastButtonClassName = "rdpPageLast"
protected const string NextButtonClassName = "rdpPageNext"
protected const string PrevButtonClassName = "rdpPagePrev"
Properties
This property specifies the type of the buttons for current pager field. Default value LinkButton.
[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.
protected WebControl CreateButtonField(PagerFieldButtonType type, string text, string toolTip, string commandName, string commandArgument, string className, string imageUrl, string hiddenSpanText)
PagerFieldButtonType enumerator
textstringText shown as content the button control
toolTipstringTooltip of the button
commandNamestringCommand that button triggers
commandArgumentstringCommand argument which will be passed along with CommandName
classNamestringCssClass that will be applied on the button
imageUrlstringThe image url that will be applied on the button if it is of type Next, Prev, First, Last
hiddenSpanTextstringText of the hidden span
Returns: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.
protected virtual WebControl EnsureEnableState(WebControl button, string commandArgument)
Button instance to be validated.
commandArgumentstringCommand argument for the button.
Returns:Returns same button with Enabled property set.
Formats the text depending on PagerFieldButtonType. Text for LinkButton is wrapped with span tag.
protected virtual string PrepareTextFormat(PagerFieldButtonType type, string text)
Value from PagerFieldButtonType enum.
textstringText to be formatted.
Returns:Returns string representing content of button.