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

event handle function works terrible on mobile

4 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yunfei
Top achievements
Rank 1
Yunfei asked on 19 Nov 2012, 09:41 AM
In my practice, I use lastest version(v2012.3.1114),

In ListView widget,  I use  "loadMore=true", so the  loadMore button show in the bottom of the list.
It was implemented with below code in Kendo Mobile
###################################
 if (loadMore) {
                    that._loadButton = $('<button class="km-load km-button">' + options.loadMoreText + '</button>')
                                        .click(function() {
                                           that.loading = true;
                                           that._toggleButton(false);
                                           that.dataSource.next();
                                        });

                    loadWrapper.append(that._loadButton);
                }


#############################

It work fine on PC , but  it works bad when i test on Android  mobile( I force my app show in "ios" platform style).
It gives reaction only if click on it continuously.


I test on other conditions like :
########################################
<a class="tabButton" >Test link</a>
.............
$("a.tabButton").on("doclick", funtionName);
########################################
It turns out the  same as "loadMore" button.


WHo can help me on this issue?

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 19 Nov 2012, 11:21 AM
Hi,

You should use the click widget event, not the DOM event. Please take a look at our documentation and demos for code samples and explanations.

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Yunfei
Top achievements
Rank 1
answered on 19 Nov 2012, 12:34 PM
But why kendo self [loadMore] button cant work fine?
0
Accepted
Petyo
Telerik team
answered on 19 Nov 2012, 01:40 PM
Hello,

Sorry for misleading you here - indeed this is an oversight, and the touchend event should be handled in this case. We will address this in our next internal build (which is going to be released end of this week). I am updating your telerik points for this finding. 

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Yunfei
Top achievements
Rank 1
answered on 19 Nov 2012, 02:25 PM
Thanks for Petyo's kindly help
Tags
General Discussions
Asked by
Yunfei
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Yunfei
Top achievements
Rank 1
Share this question
or