November Happy Hour will be moved to Thursday December 5th.

Class ScriptSetFocusEvent

Attaches a client side script to set focus or select the text of the element suplied as Focus target

Inheritance
System.Object
ScriptSetFocusEvent
Namespace: EPiServer.ClientScript.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class ScriptSetFocusEvent : ScriptEventBase

Constructors

ScriptSetFocusEvent()

Declaration
public ScriptSetFocusEvent()

Properties

FocusControlID

Gets or sets the id of the element to give focus.

Declaration
public string FocusControlID { get; set; }
Property Value
Type Description
System.String

The id of the control to focus

SetFocus

Gets or sets a value indicating whether to give the focus target element focus.

Declaration
public bool SetFocus { get; set; }
Property Value
Type Description
System.Boolean

SetSelect

Gets or sets a value indicating whether to select the text of the focus target element.

Declaration
public bool SetSelect { get; set; }
Property Value
Type Description
System.Boolean

Methods

CreateEvent()

Create an instance of the event this web control represents.

Declaration
protected override EventBase CreateEvent()
Returns
Type Description
EventBase

An EventBase derived event instance.

Overrides

Extension Methods