As you can read http://www.trirand.com/jqgridwiki/doku.php?id=wiki:table_to_jqgrid the parameter parameters of the tableToGrid method are nothing more than the jqGrid parameters you create (see http: // www .trirand.com / jqgridwiki / doku.php? id = wiki: options ).
If I give up your main problem, you will receive some data received from the server, as an answer to the submit form. And you want to put this data in a grid. You can use a more direct path for this with datatype: 'local' jqGrid. Here is an example:
var grid = jQuery('#list').jqGrid({ caption: 'Testclusters', height: 'auto', gridview: true, rownumbers: true, sortable: true, datatype: 'local', viewrecords: true, pager: '#pager', pgbuttons: false, pginput: false, rownumbers: true, colNames: ['Name', 'Testtiefe', 'Std', 'FachlicheTests', 'RowVersion'], colModel: [ { name: 'Name', index: 'Name', width: 120 }, { name: 'TesttiefeName', width: 180 }, { name: 'Std', width: 21, formatter: 'checkbox', align: 'center' }, { name: 'IsFachlicheTests', width: 21, formatter: 'checkbox', align: 'center' }, { name: 'RowVersion', width: 50, hidden: true } ] }).navGrid('#pager', { edit: false, add: false, del: false, refresh: true, view: false, search: false }) .navButtonAdd('#pager', { caption: "", buttonicon: "ui-icon-calculator", title: "choose columns", onClickButton: function() { jQuery('#list').jqGrid('columnChooser'); } }); grid.jqGrid('gridResize'); var myData = [ { Name: "VIA XP", TesttiefeName: "Alle SW-Produkte", Std:true, IsFachlicheTests:false, RowVersion: "20FC31" }, { Name: "KUBUS", TesttiefeName: "Alle SW-Produkte", Std:false, IsFachlicheTests:true, RowVersion: "20FC32" } ]; for (var i = 0; i <= myData.length; i++) { grid.addRowData(i + 1, myData[i]); }
First you create an empty jqGrid, and then fill it with the addRowData method.
Also, if you have many checkboxes inside jqGrid, you might be interested in looking at my example from the Vertical text inside the table headers using the JavaScript-based SVG library and see the results http://www.ok-soft-gmbh.com/VerticalHeaders /TestFixedO1.htm .