Hi all,
I am working on JQGrid...in there i am using multiselect:true...
Nad getting first column as Chekbox....if i select on checkbox and set it as a winner then nex time when see that record all the checkboxes should be disabled and those whose were selected last time that check boxes should be checked..........
i found how to hide that row but i am not able to find how to disabled all the check boxes in JQGrid....
the code for my JQGrid is ..............
$("#Participant").jqGrid({
url: 'Handlers/AllContestParticipantHandler.ashx',
editurl: 'Handlers/AllContestParticipantHandler.ashx',
datatype: "xml",
mytype: "GET",
width: 736,
height: "100%",
colNames: ['Contest Title','Member Name','Email Id','Flag','Winner','Contribute'],
colModel: [
{ name: 'ContestTitle', index: 'ContestTitle', editable: true,edittyp: 'text', editrules: { required: true} },
{ name: 'MemberName', index: 'MemberName', editable: true, sorttype: 'text'},
{ name: 'EmailId', index: 'EmailId', editable: true, sorttype: 'text'},
{ name: 'Flag', index: 'Flag', editable: true, sorttype: 'text'},
{ name: 'Winner', index: 'Winner', editable: false, edittype: "checkbox", editoptions: { value: '1:0' }, formatter: "checkbox", formatoptions: { disabled: true }, sortable: false},
{ name: 'Contribute', index: 'Contribute', editable: false, edittype: "checkbox", editoptions: { value: '1:0' }, formatter: "checkbox", formatoptions: { disabled: true }, sortable: false},
],
onCellSelect: function(rowId, iCol, cellContent, target) {
parentRowId = rowId;
},
pager: "#pager",
caption: "All Contest Participants",
sortName: 'ContributedRecipeId',
rowNum: 10,
sortorder:'desc',
multiselect: true,
rowList: [10, 20, 30],
viewrecords: true
}).navGrid("#pager", { edit: false, add: false, del: true, search: true },
{reloadAfterSubmit: true, jqModel: true, closeOnEscape: true, closeAfterAdd: true},
{closeAfterSearch: true, drag: true, closeOnEscape: true, afterShowSearch: function() {
$.post("Handlers/AllContestParticipantHandler.ashx?valSearch=true", {}, function(data) { });
}}
)
Please go through this tell me if i can make disabled all the check boxes...
Thanx in advance...