jQuery(\"#CustomerDetailsGrid\").jqGrid({
//ignore other properties
colModel: [
{ name: \'AccountNumber\', index: \'AccountNumber\', hidden: true, viewab
If the View dialog will be created it will be filled with the information about every column placed in the rows. The id of the row (the id of I prepared the small demo which demonstrate this. In the demo element) will be constructed from the prefix "trv_" and the name of the corresponding column. It it important to understand, that in the form it will be filled the information about all columns inclusive hidden columns, but elements for the hidden columns will be hidden (has style="display: none;"). So to make the information visible it is enough to call jQuery.show() function for the corresponding element.
id column are hidden, but I make the information visible inside of beforeShowForm and afterclickPgButtons event handler of the View options:$("#list").jqGrid('navGrid','#pager',
{add:false,edit:false,del:false,view:true,search:false},
{}, // edit options
{}, // add options
{}, // del options
{}, // search options
{ // vew options
beforeShowForm: function(form) {
$("tr#trv_id",form[0]).show();
},
afterclickPgButtons: function(whichbutton, form, rowid) {
$("tr#trv_id",form[0]).show();
}
});