Assembly: EPiServer.Cms.AspNet (in EPiServer.Cms.AspNet.dll) Version: 22.214.171.124 (126.96.36.199)
public class SetFocusEvent : EventBase
This event is used to give a control focus and/or select the controls text content.
|AttachEvent||AttachEvent is responsible for adding the event to the scriptmanager. This method must be overridden by all control developers inheriting this class.||public|
|SetFocusEvent Constructor (EventType, Control)||Creates a new focus event. When the event is run the element will be focused.||public|
|SetFocusEvent Constructor (EventType, String)||Creates a new focus event. When the event is run the element will be focused.||public|
|SetFocusEvent Constructor (EventType, String, Boolean, Boolean)||Initializes a new instance of the SetFocusEvent class.||public|
|EventType||The client side event for which the event is triggered.||public|
|Focus||Gets or sets a value indicating whether this SetFocusEvent will give focus to the control.||public|
|Select||Gets or sets a value indicating whether this SetFocusEvent will select the text of the control.||public|
|TargetControlClientId||Gets or sets the client side id of the target control. This is the control which will receive focus and/or select when the event occurs.||public|
Default behaviour is to give focus to the control but not select its text content.