I want to add an extra parameter in the jqgrid . The below code is not working
formatoptions:{baseLinkUrl:'loadHoldCode/id=?', addParam: '&customerId='+$('#custIdHidden').val()},
but If I hard code the parameter value, then the value is passed as I wanted.
formatoptions:{baseLinkUrl:'loadHoldCode/id=?', addParam: '&customerId="123"},
Please help me what I should change or should I follow some other approach.
UPDATE: using custom Formater, i have tried and still I am not seeing any link
name: 'holdCode',
width: 100,
formatter:function (cellvalue, options, rowObject) {
return '<a src="loadHoldCode/id=?&customerId=' + rowObject.customerId + '">' +
cellvalue + "</a>";},
searchoptions:{sopt: ['cn', 'eq', 'ne', 'lt', 'le', 'gt', 'ge', 'nu', 'nn', 'in', 'ni']},
sortable: true,
editable: false