Completed
Last Updated: 08 Jun 2017 16:57 by ADMIN
Brady
Created on: 22 Jul 2014 01:52
Category: Data Source
Type: Feature Request
1
Wish to have a "reset" or "clear" method to restore a DataSource object to it's initial unpopulated state--specifically when used behind a s
Wish to have a "reset" or "clear" method to restore a DataSource object to it's initial unpopulated state--specifically when used behind a search text box, and need to clear the datasource when the user removes all search text.
2 comments
Jeff
Posted on: 08 Jun 2017 16:56
I attempted the proposed alternative.  Stopping immediately before datasource.query({}) see data in datasource.  Stopping immediately after, still see data in datasource.
ADMIN
Telerik Admin
Posted on: 22 Jul 2014 09:30
Thank you for the proposal.

This can be accomplished by passing an empty array of options to the query method (http://docs.telerik.com/kendo-ui/api/framework/datasource#methods-query) of the data source, i.e. dataSource.query({}). Thus its state will be reset an previous configuration options will be cleared.

Having this as a solution, I'm closing this item.