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

Resetting kendo data-init upon logout

1 Answer 132 Views
View
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Veteran
Ron asked on 19 Feb 2015, 04:33 PM
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.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 20 Feb 2015, 02:59 PM

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.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
View
Asked by
Ron
Top achievements
Rank 1
Veteran
Answers by
Kiril Nikolov
Telerik team
Share this question
or