<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: how to checked olny one check box in row in jqgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-checked-olny-one-check-box-in-row-in-jqgrid</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/how-to-checked-olny-one-check-box-in-row-in-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mohsen.bahrzadeh on how to checked olny one check box in row in jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-checked-olny-one-check-box-in-row-in-jqgrid#p27750</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-checked-olny-one-check-box-in-row-in-jqgrid#p27750</guid>
        	        	<description><![CDATA[<p><span class="question-hyperlink"><br /></span></p>
<table border="0">
<tbody>
<tr>
<td class="votecell">
<div class="vote">&#160;</div>
</td>
<td class="postcell">
<div>
<div class="post-text">
<p>i&#39;m beginner in jqGrid Plugin. i Write this code:</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit8257' value='Select Code' data-codeid='sfcode8257' /></p><div class='sfcode' id='sfcode8257'>var intArray = new Array(1000);
            var index = 1;

            var lastSel;
            var gridDocument = jQuery("#listDocument");
            gridDocument.jqGrid({
                url: &#39;jQGridHandler.ashx&#39;,
                postData: { ActionPage: &#39;ClearanceRequestDocument&#39;, Action: &#39;Fill&#39;, RequestId: &#39;3&#39; },
                ajaxGridOptions: { cache: false },

                datatype: &#39;json&#39;,
                height: &#39;490&#39;,
                colNames: [&#39;DocumentId&#39;, &#39;DocumentName&#39;, &#39;OrginalDocument&#39;,&#39;CopyDocument &#39;, &#39;Remark&#39;],
                colModel: [
                        { name: &#39;DOCUMENT_ID&#39;, width: 200, sortable: true, hidden: true },
                        { name: &#39;DOCUMENT_NAME&#39;, width: 200, sortable: true, editable: false },
                        { name: &#39;is_ORGINAL&#39;, width: 80, sortable: true, editable: true, formatter: &#39;checkbox&#39;, edittype: &#39;checkbox&#39;, editoptions: { value: &#39;Yes:No&#39;, defaultValue: &#39;Yes&#39;} },
                        { name: &#39;is_copy&#39;, width: 80, sortable: true, editable: true, formatter: &#39;checkbox&#39;, edittype: &#39;checkbox&#39;, editoptions: { value: &#39;Yes:No&#39;, defaultValue: &#39;Yes&#39;} },
                        { name: &#39;REMARK&#39;, width: 200, sortable: true, editable: false }
                ],

                sortname: &#39;DOCUMENT_ID&#39;,
                viewrecords: true,
                rownumbers: true,
                sortorder: "desc",
                editurl: &#39;clientArray&#39;,
                altRows: true,
                altclass: &#39;ui-priority-secondary&#39;,
                onSelectRow: function (id) {
                    if (id &#38;&#38; id !== lastSel) {
                        gridDocument.saveRow(lastSel, true, &#39;clientArray&#39;);
                        gridDocument.jqGrid(&#39;restoreRow&#39;, lastSel);
                        gridDocument.jqGrid(&#39;editRow&#39;, id, true, null, null, &#39;clientArray&#39;);
                        lastSel = id;
                        intArray[index] = id;
                        index += 1;
                    }
                },
                pager: &#39;#pagerDocument&#39;,
                rowNum: 30,
                rowList: [30, 60, 90],

                loadComplete: function () {
                    var $this = $(this), ids = $this.jqGrid(&#39;getDataIDs&#39;), i, l = ids.length;
                    for (i = 0; i &#60; l; i++) {
                        $this.jqGrid(&#39;editRow&#39;, ids[i], true);
                    }
                }
            }).jqGrid(&#39;navGrid&#39;, &#39;#pagerDocument&#39;, { edit: false, add: false, del: false, search: false, refresh: false });
</div></pre>
<p>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.</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
]]></description>
        	        	<pubDate>Sun, 18 Nov 2012 10:44:23 +0200</pubDate>
        </item>
</channel>
</rss>