Q: JSON format to show message after jQGrid delete (delGridRow)? I'm creating a new jqgrid table, my question is how the response should be formated in JSON to supply response text in afterSubmit event? 
For example, is it formated like this: {'response': true} ? 
Anyway, i need this to show message to user whether the record(s) is been successfully deleted or not. Like "Record(s) has been deleted" or "Record(s) cannot be deleted".
thanks!

A: I'm pretty sure you can format it for your needs. I personally use something like 
[
    {"success": true}, 
    {"response": "Record has been deleted"}
]

The details are in how you read the message and handle it in the response.
So in your afterSubmit event function, you can deal with the data as follows
afterSubmit : function(response, postdata) 
{ 
    var data = JSON.parse(response.responseText); 

    if(data[0].success){

        // do stuff for success;

    } else {

        // do stuff for failure;

    }
};

