<?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: Problems with edittype=checkbox</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problems-with-edittypecheckbox</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/problems-with-edittypecheckbox/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>hunj on Problems with edittype=checkbox</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problems-with-edittypecheckbox#p23443</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problems-with-edittypecheckbox#p23443</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
</p>
<p>I have a grid with a checkbox column and the colmodel is like this.</p>
<p>{<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;isActive&#39;, index:&#39;isActive&#39;, width:80, align:"center",<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formoptions: {rowpos:6, label:"Is Active"},<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; stype: "select",<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; searchoptions: {value:{1:&#39;&#39;,2:&#39;yes&#39;,3:&#39;no&#39;}},<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editable:true, edittype:"checkbox",<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editoptions:{value:"on:off", defaultValue:"on"}<br />},</p>
</p>
<p>To add a new row, I use the built-in function grid.jqGrid(&#39;editGridRow&#39;, "new", ...).</p>
<p>But I noticed via firebug that when adding a new row, the grid posts the whole value to the server the checkbox is checked.</p>
</p>
<p>Parameters application/x-www-form-urlencoded<br />id &#160;&#160; &#160;_empty<br />isActive &#160;&#160; &#160;on:off&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;----- Should this be "isActive on" instead?<br />oper &#160;&#160; &#160;add</p>
</p>
<p>Any comments?</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 03 Jun 2011 01:11:47 +0300</pubDate>
        </item>
</channel>
</rss>