NextPreviousPagerField.RenderDisabledButtonsAsLabels Property

Definition

Gets or sets a value that indicates whether disabled buttons are rendered as Label controls by the NextPreviousPagerField object.

public:
 property bool RenderDisabledButtonsAsLabels { bool get(); void set(bool value); };
public bool RenderDisabledButtonsAsLabels { get; set; }
member this.RenderDisabledButtonsAsLabels : bool with get, set
Public Property RenderDisabledButtonsAsLabels As Boolean

Property Value

true if disabled buttons are rendered as Label controls; otherwise, false. The default is false.

Remarks

Use the RenderDisabledButtonsAsLabels property to specify whether disabled buttons are rendered as Label controls by the NextPreviousPagerField object. The buttons are disabled by the NextPreviousPagerField object when the function associated with the button cannot be performed. For example, when you are in the first page of data, the first-page and previous-page buttons are disabled.

By default, the NextPreviousPagerField object renders the disabled buttons by using the control type specified by the ButtonType property. It also sets the Enabled property of the control to false.

When RenderDisabledButtonsAsLabels is set to true, the NextPreviousPagerField object uses the Label control to render the disabled buttons. The value of the ButtonCssClass property is used to set the CssClass property of the Label control.

The value of this property is stored in viewstate.

Applies to

See also