kendo ui - KendoMobile dataSource didn't initialize properly -


i'm developping little kendomobile webapp. problem quite simple : anytime try initialize datasource setting array data option, datasource remains empty.

here array (screen safari dev console) :

console.log("fournisseursarray -> "); console.log(fournisseursarray);  

fournisseursarray

now structure of objects :

enter image description here

in opinion both seems correct in fact : when use objects array, shows me want guess works fine.

but if simple, wouldn't have here, so...

this how declare datasource :

datasourcemap = new kendo.data.datasource({     data: fournisseursarray }); 

finally when put log on datasource :

console.log(datasourcemap); 

enter image description here

if knows problem, i'll him share knowledge me

the kendo ui data source remain empty unless call read or fetch methods. in short call fetch or read before accessing data.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -