mercredi 25 novembre 2015

Accessing kendo grid cell values

I have an web application that uses Kendo Grid. How would I obtain the values of "Ticket No" of the selected check-boxes?

enter image description here

My code is:

var grid = $("#poGrid").data("kendoGrid");
grid.items().filter(":has(:checked)").each(function () {
    var tr = $(this);
    console.log(grid.dataItem(tr));
    console.log("Length => " + grid.dataItem(tr.length.toString()));
});

console.log(" grid.items().length => " + grid.items().length);
console.log(" grid.dataItem.ticketNumber => " + grid.dataItem.ticketNumber);    

Output:
enter image description here




Aucun commentaire:

Enregistrer un commentaire