Prevent app.hideLoading() when a ListView is DataBound

2 posts, 0 answers
  1. Joe
    Joe avatar
    16 posts
    Member since:
    Jan 2013

    Posted 22 Jun 2015 Link to this post

    In my app a have a ListView with an MVVM bound DataSource. Before navigating to any view I call app.showLoading() and on every view's afterShow event I call app.hideLoading(). The problem is only on the first visit to every view hideLoading() is being triggered by the listview or its datasource so my app's loading indicator is quickly dismissed and only hidden on afterShow for subsequent visits to a view. I have hooked into the datasource requestStart, requestEnd, change, and progress events as well as the listview dataBinding and dataBound events and have found instances of e.sender._itemBinder._progressHandler = function (){e.showLoading()} and e.sender._events._progress = function (){e.showLoading()} but cannot figure out how to disable hideLoading.


    How do you disable app.hideLoading for ListView and/or DataSource binding?

  2. Petyo
    Petyo avatar
    2444 posts

    Posted 24 Jun 2015 Link to this post


    I am afraid that such API is not exposed. You may consider monkey patching this method, though.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top