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

ListView losing registered events (swipe and click)

3 Answers 80 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 17 Jul 2012, 04:29 AM
Here is the situation.

I have a view with a nab bar and list view.

I register a swipe and click events as follows:

See attached file for code

Things work great until I go to another view and then return to this one.  The events are gone.

I guessed that maybe I should register them each time the view is shown, hence the above in showForm.

Again it all works great until I go away from the one view and come back.

Has anybody seen this before?

3 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 20 Jul 2012, 07:09 AM
Hi Shawn,

I examined the code you provided and I think the issue is due to the registered events in the data-show of the view with id = "settings". In order to fire the swipe and click events when go to another view and then return to the main one I would suggest to register them in the data-init of the main view. For convenience, I updated your project.


Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shawn
Top achievements
Rank 2
answered on 20 Jul 2012, 09:35 PM
Thanks will give it a try and see how it works.

Does Kendo have a message box widget or is one planned similar to say AfxMessageBox?

Alerts seems to cause all kinds of problems, but I am also coming from C, C++, C# and JAVA world and new to HTML and JS.

Shawn
0
Iliana Nikolova
Telerik team
answered on 25 Jul 2012, 10:47 AM
Hi Shawn,

I am not sure if I understand you correctly, but you could check the Kendo UI validator widget. In case you are looking for a different control please provide more detailed information. 

Kind regards,
Iliana Nikolova
the Telerik team
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
Shawn
Top achievements
Rank 2
Answers by
Iliana Nikolova
Telerik team
Shawn
Top achievements
Rank 2
Share this question
or