RadFileExplorer supports filtering of the files and folders in the Grid. Simply set the EnableFilterTextBox property to true and a search box will be rendered above the Grid's header. The items are filtered on every key stroke, so you don't need to press "Enter" to invoke the filtering process. Note that the FileExplorer searches for the keyword in the currently selected directory, omitting the items in the subfolders.
The text of the Label is set through the localizable FilterTextBoxLabel property.
It is not necessary to have the built-in filter textbox enabled in order to perform filtering. The FileExplorer's filter(keyWord) client-side
method can be used to filter the items in the currently selected directory.
The filter client-side event (OnClientFilter property) is raised before the filtering occurs, and event argument
object with the following properties and methods is passed to the event handler method:
- get_text() - gets the text (keyword) to search for
- set_text(newText) - sets the text (keyword) to search for
- set_cancel(toCancel) - sets bool value that determines whether the filtering will be cancelled - set_cancel(true) will cancel the filtering process.
- get_domEvent() - gets a reference to the current domEvent - it comes handy when you need to determine which key was pressed