Is this the full source code of the page? There is no obvious reason for the read transport to be triggered twice - the dataSourceInvitations is not used anywhere except in the document.ready event handler. Is there a widget bound to this dataSource? If your aim is to just retrieve a remote JSON data once and render a template with it I would recommend you to use standard jQuery.ajax request. For example:
On a side note, I would recommend to re-consider the application structure as the current approach is error prone because:
- Kendo UI Mobile applications does not support dynamically HTML replacement
- In Kendo UI Mobile applications MVVM binding should be performed via data-model property, nut by calling kendo.bind manually
- The JavaScript initialization of the widgets should be put inside the init event handler of the parent View
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!