<?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: Editable checkboxes</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes</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/bugs/editable-checkboxes/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Editable checkboxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14930</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14930</guid>
        	        	<description><![CDATA[<p>Hi!</p>
</p>
<p>I implement switching in edit mode inside of ondblClickRow and have no problem. The code can looks like following:</p>
<p>var lastSel = -1;<br />var grid = jQuery(&#39;#list&#39;).jqGrid({<br />&#160;&#160;&#160; ...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow: function(id, ri, ci) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastSel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (lastSel&#62;=0) grid.restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel = id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.editRow(id, true, null, null, urlEdit + &#39;/&#39; + id, null,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function(rowid, response) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastSel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (lastSel &#62;= 0) grid.restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel = id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...<br />}).navGrid(&#39;#pager&#39;,...);</p>
</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 13:13:55 +0200</pubDate>
        </item>
        <item>
        	<title>glittle on Editable checkboxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14924</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14924</guid>
        	        	<description><![CDATA[<p>I&#39;ve also noticed that I cannot click on a check box to edit. I have to click beside it. (I&#39;m using Cell Edit).</p>
<p>Please fix so that I can click directly on the check box to turn the cell into edit mode.</p>
<p>Is there a quick fix I can do before it is fixed?</p>
<p>Glen</p>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 06:39:56 +0200</pubDate>
        </item>
        <item>
        	<title>brecht on Editable checkboxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14729</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-checkboxes#p14729</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>Situation:<br />I have a grid containing dynamic rows &#38; colls filled with checkboxes.</p>
<p>Purpose is to save changes made to those checkboxes.</p>
<p><a href="http://i47.tinypic.com/xnssc5.jpg"><img src="http://i47.tinypic.com/xnssc5.jpg" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>Problem:</p>
<p>When clicking a checkbox, the edit mode isn&#39;t triggered and therefore no change has been made.<br />I have to click on a cell to do this.</p>
<p><a href="http://i47.tinypic.com/2ue1zpj.jpg"><img src="http://i47.tinypic.com/2ue1zpj.jpg" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Click on cell marks cell changed and value has changed.</p>
<p><a href="http://i46.tinypic.com/10fvm2g.jpg"><img src="http://i46.tinypic.com/10fvm2g.jpg" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>During my search on the forum I found following topics:<br /><a rel="nofollow" href="/blog/?page_id=393/help/cell-edition-for-a-checkbox/&#38;value=irow&#38;type=1&#38;include=1&#38;search=1" target="_blank"></a><a href="http://www.trirand.com/blog/?p" rel="nofollow" target="_blank">http://www.trirand.com/blog/?p</a>.....p;search=1<br /><a rel="nofollow" href="/blog/?page_id=393/bugs/checkbox-value-when-true-not-saving-to-false-in-jqgrid-36" target="_blank"></a><a href="http://www.trirand.com/blog/?p" rel="nofollow" target="_blank">http://www.trirand.com/blog/?p</a>.....-jqgrid-36</p>
<p>Neighter of them could provide me a solution.</p>
<p>Source (limited):</p>
<pre id="line16"><p><input type='button' class='sfcodeselect' name='sfselectit997' value='Select Code' data-codeid='sfcode997' /></p><div class='sfcode' id='sfcode997'>$(&#34;#grid&#34;).jqGrid(<br /> {<br /> url: &#39;.../GridData&#39;,<br /> datatype: &#39;json&#39;,<br /> colModel:<br />[{name:&#39;field1&#39;,index:&#39;field1&#39;,sortable:false,width:25,align:&#39;center&#39;,<br />      formatter:&#39;checkbox&#39;,formatoptions:{disabled:false},<br />      editable:true,edittype:&#39;checkbox&#39;,editoptions:{value:&#39;true:false&#39;},search:false},<br />{name:&#39;field2&#39;,index:&#39;field2&#39;,sortable:false,width:25,align:&#39;center&#39;,<br />      formatter:&#39;checkbox&#39;,formatoptions:{disabled:false},<br />      editable:true,edittype:&#39;checkbox&#39;,editoptions:{value:&#39;true:false&#39;},search:false}]<br /> multiselect: true,<br /> multiboxonly: true,<br /> cellEdit: true,<br /> cellsubmit: &#39;clientArray&#39;,<br /> mtype: &#34;POST&#34;,<br /> pager: $(&#39;#gridPager&#39;),<br /> rowNum: 20,<br /> rowList: [10, 20, 30, 50, 100],<br /> caption: &#39;caption&#39;,<br /> toolbar: [true, &#34;top&#34;],<br /> height: &#39;100%&#39;<br /> });</div>Thanks in advance<br />Brecht<br /></pre>
]]></description>
        	        	<pubDate>Thu, 11 Feb 2010 19:18:04 +0200</pubDate>
        </item>
</channel>
</rss>