Hello,
using the custom formatter with xml as data. In the formatter function, rowObject returns xml data for the row, however when I use restoreRow is returns json object.
I am trying to set link as custom formatter with parameters
1 2 3 4 5 |
function showLink(cellvalue,options,rowObject){ return "<a href=javascript:void(0) onclick=myProdStatus(rowObject.childNodes[6].textContent);>" + rowObject.childNodes[7].textContent+ "</a>"; } |
This cause error when restoreRow is called because rowObject is json object and not xml
the other option I tried is to get the rowdata
1 2 3 4 5 6 |
function showLink(cellvalue,options,rowObject){ var rd = mygrid.jqGrid('getRowData',options.rowId); //this does not return any row data ... } |
Please advise
Kris
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top