ListView losing registered events (swipe and click)

4 posts, 0 answers
  1. Shawn
    Shawn avatar
    43 posts
    Member since:
    Dec 2011

    Posted 16 Jul 2012 Link to this post

    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?
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 20 Jul 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Shawn
    Shawn avatar
    43 posts
    Member since:
    Dec 2011

    Posted 20 Jul 2012 Link to this post

    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
  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 25 Jul 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready