a long time ago we modified the kendostore front sample for our internal needs.
specifically store-browse.js
(function ($, kendo, store) {
var viewModel = kendo.observable({
Products: {
data: [],
total: 0
},
noticed data is array not DataSource or ObservableArray
- changing to DataSource throws a recursion error in kendo js file
- ObservableArray works but suffers from duplicate rendering issue
About: kendo duplicate rendering issue
attached is image where left side is code causes duplicate rendering randomly.
my hack so i wouldn't have to do major refactoring is on the right . (working - no more doubles)
Can someone explain why doubles happen when pushing into array (left side of code)?
specifically store-browse.js
(function ($, kendo, store) {
var viewModel = kendo.observable({
Products: {
data: [],
total: 0
},
noticed data is array not DataSource or ObservableArray
- changing to DataSource throws a recursion error in kendo js file
- ObservableArray works but suffers from duplicate rendering issue
About: kendo duplicate rendering issue
<
section
>
<
div
class
=
"clearfix"
data-role
=
"listView"
data-bind
=
"source: Products.data"
data-template
=
"product-template"
></
div
>
</
section
>
attached is image where left side is code causes duplicate rendering randomly.
my hack so i wouldn't have to do major refactoring is on the right . (working - no more doubles)
Can someone explain why doubles happen when pushing into array (left side of code)?