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?

     http://docs.telerik.com/kendo-ui/api/javascript/mobile/application#methods-hideLoading

  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 24 Jun 2015 Link to this post

    Hi,

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

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top