Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Trying to get the value of name data inside an object (using Kendo Ui)

so i have this simple object

var dataSource = new kendo.data.DataSource({
       data : ["One", "Two"]
    });
    console.log(dataSource.data[0]);

    kendo.bind($("#container3"), {});

im trying to get the value of "One" or "Two" but i always get undefined.

console.log(dataSource.data[0]);

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

use

dataSource.transport.data[0]

instead of

 dataSource.data[0] 
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading