Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 ..............

C#
$("#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},//del
               {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...
Posted

1 solution

Hi,

Please try following:

How to enable/disable checkbox in jqgrid based on some condition[^]

or go

G O O G L E[^]

Thanks,
Imdadhusen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900