1
I need to put the Mark and Deselect option on all checkboxes listed by JQGRID
I can’t imagine how to do it. Below the JS table.
var grid = $("#jqGrid").jqGrid({
url: '/Expedicao/Minuta/CarregaTransportadorNotas',
datatype: 'json',
mtype: 'GET',
postData: {
transportador: function () { return jQuery("#transportador").val(); }
},
colModel: [
{name: "Escolher",width: 70, align: "center",
formatter: "checkbox", formatoptions: { disabled: false},
edittype: "checkbox", editoptions: {value: "Yes:No", defaultValue: "Yes"},
stype: "select", searchoptions: { sopt: ["eq", "ne"], value: ":Any;true:Yes;false:No" } },
{ label: 'Codigo', name: 'doc', width: 250 },
{ label: 'Série', name: 'serie', width: 180},
],
viewrecords: true,
rowNum: 20,
rowList: [20, 40, 100],
height: "auto",
//height: 400,
emptyrecords: "Nenhuma Minuta ...",
loadtext: "Buscando e carregando...",
//rowNum: 20,
pager: "#jqGridPager",
loadonce: true
});
$("#jqGrid").jqGrid('navGrid', 'jqGridPager', { edit: false, add: false, del: false })
Thanks. Your answer worked too. I chose to use multiselect:true . which is in the Grid itself. Thanks
– Danielle Arruda torres