Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
how to checked olny one check box in row in jqgrid
Tags: jqgrid
18/11/2012
10:44
Avatar
mohsen.bahrzadeh
Member
Members
Forum Posts: 6
Member Since:
13/02/2012
sp_UserOfflineSmall Offline


 

i'm beginner in jqGrid Plugin. i Write this code:

var intArray = new Array(1000); var index = 1; var lastSel; var gridDocument = jQuery("#listDocument"); gridDocument.jqGrid({ url: 'jQGridHandler.ashx', postData: { ActionPage: 'ClearanceRequestDocument', Action: 'Fill', RequestId: '3' }, ajaxGridOptions: { cache: false }, datatype: 'json', height: '490', colNames: ['DocumentId', 'DocumentName', 'OrginalDocument','CopyDocument ', 'Remark'], colModel: [ { name: 'DOCUMENT_ID', width: 200, sortable: true, hidden: true }, { name: 'DOCUMENT_NAME', width: 200, sortable: true, editable: false }, { name: 'is_ORGINAL', width: 80, sortable: true, editable: true, formatter: 'checkbox', edittype: 'checkbox', editoptions: { value: 'Yes:No', defaultValue: 'Yes'} }, { name: 'is_copy', width: 80, sortable: true, editable: true, formatter: 'checkbox', edittype: 'checkbox', editoptions: { value: 'Yes:No', defaultValue: 'Yes'} }, { name: 'REMARK', width: 200, sortable: true, editable: false } ], sortname: 'DOCUMENT_ID', viewrecords: true, rownumbers: true, sortorder: "desc", editurl: 'clientArray', altRows: true, altclass: 'ui-priority-secondary', onSelectRow: function (id) { if (id && id !== lastSel) { gridDocument.saveRow(lastSel, true, 'clientArray'); gridDocument.jqGrid('restoreRow', lastSel); gridDocument.jqGrid('editRow', id, true, null, null, 'clientArray'); lastSel = id; intArray[index] = id; index += 1; } }, pager: '#pagerDocument', rowNum: 30, rowList: [30, 60, 90], loadComplete: function () { var $this = $(this), ids = $this.jqGrid('getDataIDs'), i, l = ids.length; for (i = 0; i < l; i++) { $this.jqGrid('editRow', ids[i], true); } } }).jqGrid('navGrid', '#pagerDocument', { edit: false, add: false, del: false, search: false, refresh: false });

in this list i show all document and end user Should specify Documents delivered copy or original.i put Two CheckBox controls for each row .Now the user can Checked two CheckBox.But I want to be able to select any row a CheckBox. please help me expert. thanks all.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information