hi, I have created a grid that works 'fine' and display one line as supposed,
@(Html.Kendo().Grid<ESACatalog.Models.tb_Part>()
.Name("gridPart")
.Columns(columns => {
columns.Bound(p => p.PartID).Width(150);
columns.Bound(p => p.ClassID);
columns.Bound(p => p.PartListPrice).Width(100).Title("List Price");
columns.Bound(p => p.PartDesc).Title("Description");
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Get_Part", "Home").Data("getParameter")))
)
I need now to read the value of column ClassID to reuse it so i tried the following code
var grid = $("#gridPart").data("kendoGrid");
grid.bind("change", function(e) {
var dataItem = grid.dataSource.view()[0];
if (dataItem) {
var value = dataItem.columnName;
console.log(value);
}
});
but got a message as unassigned
I would really appreciate any help
thanks
Ray