I followed the specifications founded in jqgrid documentation but an error is occurring when I try to save the row. here the example code:
<script>
function myelem (value, options) {
var el = document.createElement("input");
el.type="text";
el.value = value;
return el;
}
function myvalue(elem, operation, value) {
if(type=='get') {
return $(elem).find("input").val();
} else if(type == 'set') {
$('input',elem).val(stringvalue);
}
}
jQuery("#grid_id").jqGrid({
...
colModel: [
...
{name:'price', ..., editable:true, edittype:'custom',
editoptions:{custom_element: myelem, custom_value:myvalue} },
...
]
...
});
</script>
in the following line in debug I found that type is undefined is there any other method to know in that point if it is a set or a get of the value.
...
if(type=='get') {
...