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

Time:10-25

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]);

CodePudding user response:

use

dataSource.transport.data[0]

instead of

 dataSource.data[0] 
  • Related