<?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 get value of checkbox.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox</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-get-value-of-checkbox/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4272</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4272</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thank you. I will definitley check this.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 31 Jan 2009 05:06:05 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4263</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4263</guid>
        	        	<description><![CDATA[<p>The following did not work either even though the JSON data for this field is "True" or "False":</p>
<p>{label: &#39;APR&#39;, name: &#39;APR&#39;, index: &#39;Approved&#39;, width: 35, formatter: &#39;checkbox&#39;, editoptions: { value: "True:False"}, align: &#39;center&#39; }</p>
</p>
<p>when the formatter:&#39;checkbox&#39; option is set then the only return I can get is&#160;</p>
</p>
<p>&#60;INPUT disabled type=checkbox CHECKED value=-1 offval=&#8221;no&#8221;&#62;</p>
</p>
<p>If the&#160;formatter:&#39;checkbox&#39; option is not present then the return value is "True", "False", "Yes" or "No" whatever is contained for the json text data for this field.</p>
</p>
<p>I suppose I can parse that result to extract the value but I will probably go without the formattter: &#39;checkbox&#39; configuration and live with the word "Yes" or "No" in the column for now.&#160;</p>
</p>
<p>RobGMiller...</p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 12:41:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4258</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4258</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>editoptions: { value: "True:False"} ...</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 11:15:30 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4255</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4255</guid>
        	        	<description><![CDATA[<p>Hi Tony,&#160;</p>
<p>the json text data for this cell is &#8220;True&#8221; or &#8220;False&#8221;</p>
<p>By &#8220;editoptions values for the checkbox instead that they is not editable&#8221; do you mean:</p>
<p>{label: &#39;APR&#39;, name: &#39;APR&#39;, index: &#39;Approved&#39;, width: 35, formatter: &#39;checkbox&#39;, editoptions align: &#39;center&#39; ,&#160;editoptions:{value:{1:&#39;True&#39;,2:&#39;False&#39;}}},</p>
<p>without&#160;editable: true</p>
<p>That did not work.&#160;</p>
<p>the APR cell still returns &#8220;&#60;INPUT disabled type=checkbox CHECKED value=-1 offval=&#8221;no&#8221;&#62;&#8221; using getCell</p>
<p>Also tried:</p>
<p>{label: &#39;APR&#39;, name: &#39;APR&#39;, index: &#39;Approved&#39;, width: 35, edittype: "checkbox", formatter: &#39;checkbox&#39;, align: &#39;center&#39;, editoptions: { value: "Yes:No"} },</p>
<p>And&#160;</p>
<p>{label: &#39;APR&#39;, name: &#39;APR&#39;, index: &#39;Approved&#39;, width: 35, formatter: &#39;checkbox&#39;, align: &#39;center&#39;, editoptions: { value: "Yes:No"} },</p>
</p>
<p>RobGMiller&#8230;</p></p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 10:44:27 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4253</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4253</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Right now I understand what you mean 🙂</p>
<p>When you use the formater the possible values returned from the server (or array) can be true/false, yes/no, 1/0, on/off - I see you use -1 which will retun unexpected results. Also a good idea in this case is (not documented - sorry) to set a editoptions values for the checkbox instead that they is not editable.</p>
<p>Maybe I need to change the unformat function (wich is used in getCell) for checkbox the same way as for formatter.</p>
<p>Thank you.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 09:54:48 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4236</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4236</guid>
        	        	<description><![CDATA[</p>
<p>Not exactly sure what you mean by incompatible or currently edited elements.&#160;</p>
<p>The checkbox column is not being edited when its value is extracted using&#160;</p>
<p>var APR = $(&#39;#ETSMonth&#39;).getCell(id, 3);</p>
<p>In any case, I&#39;ve checked other cells, some editable and some not, some hidden and some not using getCell at the same place in code an only the checkbox cell does not return the value as indicated above.</p>
</p>
<p>Can you see something wrong with the colModel: property setting for this column?</p>
</p>
<p>{label: &#39;APR&#39;, name: &#39;APR&#39;, index: &#39;Approved&#39;, width: 35, formatter: &#39;checkbox&#39;, align: &#39;center&#39; },&#160;</p>
</p>
<p>Is there an alternate way of getting the content of a checkbox?</p>
</p>
<div></div>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 19:13:12 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4216</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4216</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I will make an appeal for this</p>
<p>Please read first the forum for this.</p>
<p>Also again - getCell and getRowData are not compatible when they are applied to curretly edited elements.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 06:36:13 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on How to get value of checkbox.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4205</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-value-of-checkbox#p4205</guid>
        	        	<description><![CDATA[<p>A column is formatted to be a checkbox --&#62;&#160;formatter: &#39;checkbox&#39;</p>
<p>the line:&#160;</p>
<p>var APR = $(&#39;#ETSMonth&#39;).getCell(id, 3);&#160;</p>
<p>returns:</p>
<p>&#60;INPUT disabled type=checkbox CHECKED value=-1 offval="no"&#62;</p>
<p>Ideally it should return (true or false) or (-1 or 0) weather the column is hidden or not.&#160;</p>
<p>Is it possible to disable the ability to edit a cell based on the status of this checkbox column for individual rows?</p>
<p>Thanks in advance,&#160;</p>
<p>Rob..</p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 05:05:29 +0200</pubDate>
        </item>
</channel>
</rss>