I am creating a Listview control in markup, and on a button click event am initializing and loading data into a datasource for display as result of a user initiated search. When the user performs a new search, I call the datasource.reload() to retrieve data for the updated search criteria. The spinner doesn't show up when I do so. What can I do to get the spinner to show during the reload operation? Here is the code that handles the 'click' event of the search. Everything works fine except there is no spinner during read()
//Handle the search 'GO' button click event
this.doItemSearch =
function
() {
//this selector grabs the search criteria
if
($(
'#searchCriteria'
).val() !=
''
) {
if
(dataSource)
dataSource.read();
else
initdataSource();
if
(listView) {
//Do nothing
}
else
{
listView = $(
"#myListView"
).kendoMobileListView({
dataSource: dataSource,
template: $(
"#myTemplate"
).text(),
endlessScroll:
true
,
scrollTreshold: 30
//treshold in pixels
});
}
}
}