Edit this page

OnClientDataRequesting

The OnClientDataRequesting client-side event occurs when a new text is entered and a request for items is about to be sent.

The event handler receives two parameters:

  1. The instance of RadSearchBox firing the event.

  2. An eventArgs parameter containing the following methods:

    • get_text() - returns the text of the searchBox.

    • get_showAllResults() - returns a boolean value indicating whether all results should be shown,or just a portion of them, depending on the MaxResultsCount property value.

    • set_cancel(boolean) - cancels the event depending on the value passed as an argument.

    • get_userContext() - returns the userContext object of type IDictionary that is passed after that to the OnDataSourceSelect event handler or to the Web Service method.

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy