ClassGridViewSearchPanel
Represents the GridViewSearchPanel control wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml.Wpf
Assembly:Telerik.WebAii.Controls.Xaml.Wpf.dll
Syntax:
public class GridViewSearchPanel : FrameworkElement, IAutomationPeer, IPeerConverter, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementGridViewSearchPanel
Implements:
Inherited Members
Constructors
GridViewSearchPanel()
Declaration
public GridViewSearchPanel()
Properties
ClearTextButton
Gets the Clear button of the GridView SearchTextBox. In order for this button to be vsible the SearchTextBox must be mouse hovered. The use of ClearSearchText method to clear the text is recommended.
CloseButton
Gets the Close button of the GridViewSearchPanel. Throws excpetion if the GridViewSearchPanel is not visible.
Declaration
public RadPathButton CloseButton { get; }
Property Value
SearchTextBox
Gets the Search TextBox of the GridViewSearchPanel. Throws excpetion if the GridViewSearchPanel is not visible.
Methods
ClearSearchText()
Clears the text of the GridView SearchTextBox by clicking on the Clear button.
Declaration
public bool ClearSearchText()
Returns
Returns true if the text was successfully cleared and false if not.
Search(string, bool, bool, bool)
Types the search text in the SearchTextBox.
Declaration
public void Search(string textToSearch, bool clickFirst = true, bool simulateRealUser = true, bool shouldPressEnter = false)
Parameters
textToSearch
The text to be typed.
clickFirst
Indicates whether the SearchTextBox should be clicked before typing in it.
simulateRealUser
Indicates whether the typing should simulate real user. When set to false the Text of the TextBox is set directly.
shouldPressEnter
Indicates whether "Enter" should be pressed after the text is typed.