<?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: celledit + checkbox needs an "ENTER" pressed for saving state</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state</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/celledit-checkbox-needs-an-enter-pressed-for-saving-state/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>timeriver on celledit + checkbox needs an "ENTER" pressed for saving state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23980</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23980</guid>
        	        	<description><![CDATA[<blockquote>
<p>kobruleht said:</p>
<p>I tried but got error that block() method is undefined. How to fix ?</p>
</blockquote>
<hr />
<p>the block is blockUI function, try to google how to use it.</p>
]]></description>
        	        	<pubDate>Mon, 18 Jul 2011 11:38:30 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on celledit + checkbox needs an "ENTER" pressed for saving state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23976</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23976</guid>
        	        	<description><![CDATA[<p>I tried but got error that block() method is undefined. How to fix ?</p>
]]></description>
        	        	<pubDate>Sun, 17 Jul 2011 20:14:05 +0300</pubDate>
        </item>
        <item>
        	<title>timeriver on celledit + checkbox needs an "ENTER" pressed for saving state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23968</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p23968</guid>
        	        	<description><![CDATA[<p>I had done this, share with you :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5327' value='Select Code' data-codeid='sfcode5327' /></p>
<div class='sfcode' id='sfcode5327'>$(document).ready(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;sheet.aspx?q=load&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function (data) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#grid_id&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;clientSide&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: data.colNames, //get from code behide<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: data.colModel, //get from code behide<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 15,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; headtitles: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: data.rows,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#34;rows&#34;<br />&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellurl: &#39;sheet.aspx?q=update&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeSubmitCell: function (rowid, celname, value, iRow, iCol) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return { celname: celname }<br />&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160; loadError: function (xhr, status, error) { alert(status + &#34; &#34; + error); }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#34;.jqgrow td input&#34;).each(function () {&#160; //detect all input<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(this).click(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(this).change(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var data = new Array(3);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data[0] = &#34;{id:\&#34;&#34; + $(this).parents(&#39;tr&#39;).attr(&#39;id&#39;).replace(/^\s*&#124;\s*$/g, &#34;&#34;) + &#34;\&#34;,&#34;; // replace = trim<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var colname = $(this).parents(&#39;td&#39;).attr(&#39;aria-describedby&#39;).replace(&#34;grid_id_&#34;, &#34;&#34;); // get colname<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var value = ($(this).prop(&#39;checked&#39;)) ? &#34;True&#34; : &#34;False&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data[1] = colname + &#34;:\&#34;&#34; + value + &#34;\&#34;,&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data[2] = &#34;celname:\&#34;&#34; + colname + &#34;\&#34;}&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;sheet.aspx?q=update&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: eval(&#39;(&#39; + data[0] + data[1] + data[2] + &#39;)&#39;),&#160; //eval is string to json<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeSend: function (jqXHR, textStatus) { jQuery(&#39;#grid_id&#39;).block({ message: &#39;&#60;h1&#62;Loading...&#60;/h1&#62;&#39; }); },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; complete: function (jqXHR, textStatus) { jQuery(&#39;#grid_id&#39;).unblock(); },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function (xhr, status, error) { alert(status + &#34; &#34; + error); }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#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;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#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; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; error: function (x, e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(x.readyState + &#34; &#34; + x.status + &#34; &#34; + e.msg);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160; });</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit2923' value='Select Code' data-codeid='sfcode2923' /></p>
<div class='sfcode' id='sfcode2923'>colmodel: &#34;{&#34;name&#34;:&#34;test&#34;,&#34;width&#34;:40,&#34;align&#34;:&#34;center&#34;,&#34;editoptions&#34;:{&#34;value&#34;:&#34;True:False&#34;},&#34;edittype&#34;:&#34;checkbox&#34;,&#34;formatter&#34;:&#34;checkbox&#34;,&#34;formatoptions&#34;:{&#34;disabled&#34;:false}},&#34;</div>
<p>these code can ajax save the checkbox state.</p>
]]></description>
        	        	<pubDate>Fri, 15 Jul 2011 18:20:23 +0300</pubDate>
        </item>
        <item>
        	<title>giorgio79 on celledit + checkbox needs an "ENTER" pressed for saving state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p21733</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p21733</guid>
        	        	<description><![CDATA[<p>I think my issue is a duplicate of this:</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/bugs/cant-click-on-checkbox-in-cell-edit-mode/&#038;value=onclick%20savecell&#038;type=2&#038;include=1&#038;search=1&#038;ret=all" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....38;ret=all</a></p>
]]></description>
        	        	<pubDate>Mon, 17 Jan 2011 09:44:51 +0200</pubDate>
        </item>
        <item>
        	<title>giorgio79 on celledit + checkbox needs an "ENTER" pressed for saving state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p21701</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-checkbox-needs-an-enter-pressed-for-saving-state#p21701</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I am having an issue that is very similar to an old bug:</p>
<blockquote>
<p><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>1. Click on cell with content Yes</p>
<p>2. Change the value from checked to unchecked</p>
<p>3. Press Enter to save it</p>
<p>evarthing correct.</p>
<p>But this not work (bug)</p>
<p>1. Click on cell with content Yes</p>
<p>2. Change the value from checked to unchecked</p>
<p>3. "CLICK ANOTHER CELL"</p>
</blockquote>
<p>The difference is that I am using a checkbox formatter for display, not just for edit like this</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1962' value='Select Code' data-codeid='sfcode1962' /></p>
<div class='sfcode' id='sfcode1962'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; {name:&#39;selected&#39;,index:&#39;selected&#39;,classes:&#34;192-haha&#34;,width:90,editable:true, edittype:&#39;checkbox&#39;, editoptions: { value:&#34;1:0&#34;},&#160; formatter: &#34;checkbox&#34;, formatoptions: {disabled : false},sorttype:&#34;text&#34;,searchoptions: { sopt: [&#39;eq&#39;], value:&#34;:All;1:Yes;0:No&#34; }, stype: &#39;select&#39;,sortable:true},</div>
<p>The same happens:</p>
<p>1. Click on checkbox</p>
<p>2. Click inside the cell of the checkbox to highlight with celledit</p>
<p>3. Press Enter to save</p>
<p>Works fine</p>
<p>But this does not</p>
<p>1. Click on checkbox to change value</p>
<p>2. Click somewhere else</p>
<p>3. Do a sort or filter -&#62; Checkbox loses the change</p>
<p>Here is the full code, that I posted in another thread before:</p>
<p><a rel="nofollow" href="/blog/?page_id=393/help/edited-checkbox-value-lost-after-filtering-or-sorting-while-others-are-preservedi/" target="_blank"></a><a href="http://www.trirand.com/blog/?p" rel="nofollow" target="_blank">http://www.trirand.com/blog/?p</a>.....reservedi/</p>
]]></description>
        	        	<pubDate>Sun, 16 Jan 2011 10:27:47 +0200</pubDate>
        </item>
</channel>
</rss>