How to "reset" a datasource

2 posts, 1 answers
  1. Answer
    Ron
    Ron avatar
    142 posts
    Member since:
    Sep 2011

    Posted 12 Nov 2012 Link to this post

    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.
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2894 posts

    Posted 15 Nov 2012 Link to this post

    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!
Back to Top