Note that there are some explanatory texts on larger screens.

plurals
  1. POPull down to refresh in Kendo-UI, text overlaps showing both "release" and "pull" labels
    primarykey
    data
    text
    <p>I have a problem with the pull down refresh. It works the first time, but then if I change to a different view, then come back to the original view, the <code>Pull to refresh</code> and <code>Release to refresh</code> text seem to get duplicated and overlapped on itself. I am "hardcoding" the datasource's data here, I don't want to use the transport ajax.</p> <p>I am trying to manually update the data in the <code>setOptions</code> <code>pull</code> method, instead of letting Kendo update it via ajax. The actual data update works. There are no Javascript errors and I get the same result in Chrome and Firefox.</p> <p>First time works:</p> <p><img src="https://i.stack.imgur.com/N30hP.png" alt="enter image description here"></p> <p>After moving to another view, then back to this view, then pulling down:</p> <p><img src="https://i.stack.imgur.com/wysuN.png" alt="enter image description here"></p> <p>My view code is:</p> <pre><code>&lt;div id="subitem-view" data-role="view" data-show="showSubItems"&gt; &lt;div data-role="header"&gt; &lt;div data-role="navbar"&gt; &lt;/div&gt; &lt;/div&gt; &lt;ul id="subItemList" class="itemList"&gt; &lt;/ul&gt; &lt;script id="subItemTemplate" type="text/x-kendo-template"&gt; #:Name# &lt;/script&gt; &lt;/div&gt; </code></pre> <p>Javascript: </p> <pre><code>function showSubItems(e) { var subItems = new kendo.data.DataSource({ data: [ { Name : "Test1" }, { Name : "Test2" } ] }); e.view.element.find("#subItemList").kendoMobileListView({ dataSource: subItems, pullToRefresh: true, template: kendo.template($("#subItemTemplate").html()) }); if (typeof (e.view.scroller.pull) == "undefined") { e.view.scroller.setOptions({ pull: function () { console.log("pull event..."); subItems.data([ { Name : "Test1 Updated" }, { Name : "Test2 Updated" } ]); setTimeout(function () { e.view.scroller.pullHandled(); }, 400); } }); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload