SetFocus Property

UltimateSearch

Collapse imageExpand ImageCopy imageCopyHover image
Gets or sets a value that indicates whether the search text box has the focus on page load.

Namespace: Karamasoft.WebControls.UltimateSearch
Assembly: UltimateSearch (in UltimateSearch.dll) Version: 3.7.4186.26690

Syntax

C#
public bool SetFocus { get; set; }
Visual Basic
Public Property SetFocus As Boolean
	Get
	Set
Visual C++
public:
property bool SetFocus {
	bool get ();
	void set (bool value);
}

Field Value

true if the search text box has the focus on page load; otherwise, false. The default value is true.

Remarks

Use this property to set the focus to the search text box on page load so that the cursor will initially be displayed in it on page load.

See Also