I am using extjs grid , and i put a render function on a coloumn of a grid
/**
* function for rendering the link
**/
function linkRenderer(data, cell, record, rowIndex, columnIndex, store) {
console.log(record.id);
if (data != null) {
return '<a href="javascript:void(0)" onclick="resellerwindow('+record.id+')">' + data + '</a>';
}
return data;
}
while on clicking the link i got an error that whatever the value of record.id is not not defined
Please suggest what solution i can do .