3 Answers, 1 is accepted
0
Hello Mohnish,
I checked the iScroll widget page and it appears that it modifies the DOM. We do not support integration with such scroll widgets, because the Kendo UI widgets may break when their DOM is modified by another widget. Sorry about that.
Regards,
Dimo
Telerik
I checked the iScroll widget page and it appears that it modifies the DOM. We do not support integration with such scroll widgets, because the Kendo UI widgets may break when their DOM is modified by another widget. Sorry about that.
Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Mohnish
Top achievements
Rank 1
answered on 24 Oct 2016, 07:01 AM
Hi,
I want to implement page-visibility-api in my Kendo page and I have a viewmodel like this,
cartViewModel = kendo.observable({ // code goes });
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
// stop running viewmodel
} else {
// page has focus, begin running task
}
});
so when the document is is hidden, using kendo how can I stop/pause the viewmodel from running/performing the tasks.
Plz help me in pausing the viewmodel.
Thanks in advance!
0
Hi Mohnish,
The Kendo UI viewModel cannot be paused or stopped, i.e. it always applies and responds to changes in its field values, together with any widgets or elements that are bound to these fields.
A possible approach that you can try, is to unbind and bind the viewModel to the web page on visibilityChange.
http://docs.telerik.com/kendo-ui/api/javascript/kendo#methods-unbind
http://docs.telerik.com/kendo-ui/api/javascript/kendo#methods-bind
Please keep in mind that calling unbind and bind repetitively may lead to undesired side effects if the bound HTML container holds Kendo UI widgets that create generated markup upon initialization. In this case, you will need to destroy and remove these widgets from the DOM after calling unbind(), and then add new DOM elements from which the new instances to be created, before calling bind().
http://docs.telerik.com/kendo-ui/intro/widget-basics/destroy#destroy-widgets-created-via-mvvm
===
On the other hand, as a holder of a Kendo UI Complete subscription specifically tailored for OpenEdge and Rollbase users, please log and manage your Kendo UI support requests via Progress SupportLink. This will also avoid the necessity to post new unrelated posts to existing forum threads. Thank you for understanding.
Regards,
Dimo
Telerik by Progress
The Kendo UI viewModel cannot be paused or stopped, i.e. it always applies and responds to changes in its field values, together with any widgets or elements that are bound to these fields.
A possible approach that you can try, is to unbind and bind the viewModel to the web page on visibilityChange.
http://docs.telerik.com/kendo-ui/api/javascript/kendo#methods-unbind
http://docs.telerik.com/kendo-ui/api/javascript/kendo#methods-bind
Please keep in mind that calling unbind and bind repetitively may lead to undesired side effects if the bound HTML container holds Kendo UI widgets that create generated markup upon initialization. In this case, you will need to destroy and remove these widgets from the DOM after calling unbind(), and then add new DOM elements from which the new instances to be created, before calling bind().
http://docs.telerik.com/kendo-ui/intro/widget-basics/destroy#destroy-widgets-created-via-mvvm
===
On the other hand, as a holder of a Kendo UI Complete subscription specifically tailored for OpenEdge and Rollbase users, please log and manage your Kendo UI support requests via Progress SupportLink. This will also avoid the necessity to post new unrelated posts to existing forum threads. Thank you for understanding.
Regards,
Dimo
Telerik by Progress
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.