get id value from custom formatter using jquery grid
get id value from custom formatter using jquery grid
Hi,
I have a table with two columns. First column is represents ID and the second column is used for a description. I would like to have a href link from both fields.
Hi,
I have a table with two columns. First column is represents ID and the second column is used for a description. I would like to have a href link from both fields.
<sjg:gridColumn
<sjg:gridColumn
I am using javascript function for custom formatter.
function formatLink(cellvalue, options, rowObject) { return "<a href='myEdit.action?id="+cellvalue +"'>"+cellvalue+"</a>"; }
I would like to have a link on the description column like /myEdit.action?id=555
but I get (i know why)
myEdit.action?id=description
I would like to modify formatLink function to get the Id. Could you help me?
Javanus