I have many column in my Jqgrid.All Columns showing Extra space on both sides.i want that column without Extra spacing. Column Width should have width according to its content. I have tried autowidth but its not working.
Actual Behavior is looks like:
----------------------------------------------- | Name | Mobile | Email | ----------------------------------------------- And What I need is :
---------------------- |Name|Mobile No|Email| ---------------------- here is my code
$("#list").jqGrid({ datatype: "local", data: mydata, colNames: ["Name", "Mobile", "Email", "Amount", "Tax", "Total", "Closed", "Shipped via", "Notes"], colModel: [ { name: "id", width: 65, align: "center", sorttype: "int", hidden: true }, { name: "invdate", width: 80, align: "center", sorttype: "date", formatter: "date", formatoptions: { newformat: "d-M-Y" }, datefmt: "d-M-Y" }, { name: "name", width: 70 }, { name: "amount", width: 75, formatter: "number", sorttype: "number", align: "right" }, { name: "tax", width: 55, formatter: "number", sorttype: "number", align: "right", hidden: true }, { name: "total", width: 65, formatter: "number", sorttype: "number", align: "right" }, { name: "closed", width: 75, align: "center", formatter: "checkbox", edittype: "checkbox", editoptions: { value: "Yes:No", defaultValue: "Yes" } }, { name: "ship_via", width: 100, align: "center", formatter: "select", edittype: "select", editoptions: { value: "FE:FedEx;TN:TNT;IN:Intim", defaultValue: "Intime" } }, { name: "note", width: 70, sortable: false } ], rowNum: 10, rowList: [5, 10, 20], pager: "#pager", rownumbers: true, sortname: "invdate", viewrecords: true, sortorder: "desc", caption: "Test for AltRows", height: "auto" }); Kindly Solve my problem.
colmodel