whenever I try to access an index or rowData I get an undefined.. Attaching the code.. Any idea what is wrong? I put the render function in the colModel.
var colM = [
{
title: "OrderID", dataIndx: "OrderID", width: 100, render: function (ui) {
var rowData = ui.rowData;
return "textbefore" + rowData[1] + "textafter" ;
}
},
{ title: "CustomerName", dataIndx: "CustomerName", width: 130 },
{ title: "UnitPrice", dataIndx: "UnitPrice", width: 100, align: "right",dataType: "float" },
{ title: "OrderDate", dataIndx: "OrderDate", width: 100 }
];