This is a migrated thread and some comments may be shown as answers.

How to "reset" a datasource

1 Answer 357 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Veteran
Ron asked on 12 Nov 2012, 03:10 PM
I have a pageable list-view (mobile) bound to a remote data set.

So far, so good. I can connect, get the data, scroll on demand.

Sometimes, however, I need to "reset" the data-source because some parameters that are used for the read are changed and I need to restart reading from scratch.

I am not sure how to do that.

an alternative for me would be to 'unbind' the list-view element, and assign a new data source that I create to it - but I am not sure how to access the data of a list-view item I already created with kendoMobileListView already.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 15 Nov 2012, 03:04 PM
Hello Ron,

You can re-read the DataSource with the query method and pass the new parameters.
In case you need to modify the url of the read transport please specify the property as a function - it will execute each time when you call the read transport.

I hope this will help.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Ron
Top achievements
Rank 1
Veteran
Answers by
Alexander Valchev
Telerik team
Share this question
or