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

Prevent app.hideLoading() when a ListView is DataBound

1 Answer 26 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 22 Jun 2015, 06:33 AM

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

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 24 Jun 2015, 07:41 AM
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!
 
Tags
ListView (Mobile)
Asked by
Joe
Top achievements
Rank 2
Answers by
Petyo
Telerik team
Share this question
or