I generate the colModel out of my JSON response from the webservice and this data is directly bounded to the colModel, which works perfect.
The problem I have is to remove somehow or make jqGrid understand that the value in "formatter" is a function, I do know jqGrid expect it to be without double quotes, but I have no idea how to remove the double quotes from the JSON so when I load the JSON to the colModel the function is actually called. With the double quotes it does not work. I have looked for a day everywhere and can't find the solution on this (or remove the double qoutes or make jqGrid understand the value in formatter is a function to call.
Currently I have:
{"editable":true,"edittype":"checkbox","index":"invite","jsonmap":"invite","key":false,"name":"invite","label":"Invite","formatter":**"myfunction"**,"resizable":true,"hidden":false,"search":false,"sortable":true,"width":50,"sorttype":0,"align":"left"},
Need to have:
{"editable":true,"edittype":"checkbox","index":"invite","jsonmap":"invite","key":false,"name":"invite","label":"Invite","formatter":**myfunction**,"resizable":true,"hidden":false,"search":false,"sortable":true,"width":50,"sorttype":0,"align":"left"},
Any help in this would be well appriciated! )