Resetting kendo data-init upon logout

2 posts, 0 answers
  1. Ron
    Ron avatar
    122 posts
    Member since:
    Sep 2011

    Posted 19 Feb 2015 Link to this post

    We are using kendo mobile with our app and encountered the following issue: Our views are using the data-init to specify one time functions to be called for a view. However our app requires user-login, which means that one user can log in then log out and log in again as other user.

    On every login we need to reset the data-init events so they will be called for each user that logs in.

    We use it to handle cases where in the same session a user visits the view several time and we need to init the view only once for this session. But on the next login, we also need the init event to be executed once.

    We did not find how to reset the init-event in kendo's documentation - so it will fire again after a second (or third...) login.
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 20 Feb 2015 Link to this post

    Hello Ron,

    The init functions cannot be reset, as they are set within the mobile application structure, however you can implement a conditional statement inside these init functions and perform different actions based on the user id.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top