1
Help for ParamQuery Grid (free version) / Re: linking to url in a cell
« on: October 30, 2013, 07:19:40 pm »
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 }
];
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 }
];