<?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: Formatter Checkbox handle change event</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event</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/formatter-checkbox-handle-change-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>njcalugar on Formatter Checkbox handle change event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13926</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13926</guid>
        	        	<description><![CDATA[<p>I think I&#39;m doing the colModel incorrectly - I am using PHP code to generate the grid configuration and json_encoding a PHP array isn&#39;t correct because all the keys and string values are enclosed in quotes.</p>
]]></description>
        	        	<pubDate>Fri, 15 Jan 2010 02:23:50 +0200</pubDate>
        </item>
        <item>
        	<title>njcalugar on Formatter Checkbox handle change event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13925</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13925</guid>
        	        	<description><![CDATA[<p>I can&#39;t get it to call my custom function, i&#39;m trying to make sure it is getting called so I have an alert in the function and it is simply returning &#39;hello&#39;:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9544' value='Select Code' data-codeid='sfcode9544' /></p>
<div class='sfcode' id='sfcode9544'>$(document).ready(function() {</p>
<p> jQuery("#listZones").jqGrid({<br /> url: &#39;/onemedia/creative/edit-get-zones/id/6&#39;,<br /> datatype: &#39;json&#39;,<br /> mtype: &#39;POST&#39;,<br /> multiselect: false,<br /> colModel: [{"name":"id","index":"id","width":1,"hidden":true,"key":true},{"label":"Items","name":"name","index":"name","sortable":false},{"label":"Linked","name":"link","index":"link","sortable":false,"width":60,"align":"center","formatter":"customFormat"},{"label":"CHECK TEST","name":"checkTest","index":"checkTest","sortable":false,"width":60,"align":"center","formatter":"checkbox"}], <br /> pager: jQuery(&#39;#pager&#39;),<br /> rowNum: 10,<br /> rowList: [10,20,30,40,50],<br /> sortname: &#39;id&#39;,<br /> sortorder: &#39;asc&#39;,<br /> viewrecords: true,<br /> imgpath: &#39;/js/jqGrid/themes/steel/images&#39;,<br /> caption: &#39;Applications / Zones&#39;,<br /> width: 600,<br /> height: &#39;auto&#39;,<br /> gridComplete: function(){ },<br /> ondblClickRow: function(rowid, iRow, iCol, e){ },<br /> onSelectRow: function(rowid, status){ },<br /> treeGrid: true,<br /> treeGridModel: &#39;adjacency&#39;,<br /> ExpandColumn: &#39;name&#39;,<br /> cellEdit: false,<br /> cellsubmit: &#39;remote&#39;,<br /> cellurl: &#39;&#39;<br /> });</p>
<p>});</p>
<p>function customFormat(cval, options, rowObject) {<br /> alert(&#39;here&#39;);<br /> var checked = (cval == &#39;yes&#39;)?" checked=&#39;checked&#39;":"";<br /> return "hello";<br />}</p>
</div>
]]></description>
        	        	<pubDate>Fri, 15 Jan 2010 02:05:30 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Formatter Checkbox handle change event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13859</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13859</guid>
        	        	<description><![CDATA[</p>
<p>Hello,</p>
<p>If you want custom click event you should use custo formatter</p>
<p><a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:custom_formatter" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>....._formatter</p>
<p>something like:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7968' value='Select Code' data-codeid='sfcode7968' /></p>
<div class='sfcode' id='sfcode7968'>
<p>function mycustomclick (val, options)</p>
<p>{</p>
<p>var checked = cval == &#39;yes&#39; ? &#8221; checked=&#39;checked&#39; &#8221; : &#8220;&#8221;;</p>
<p>return &#8220;&#60;input type=\\&#8221;checkbox\\&#8221; &#8221; + checked&#160; + &#8221; value=\\&#8221;&#8221;+ cval+&#8221;\\&#8221; offval=\\&#8221;no\\&#8221;&#160; onclick=\\&#8221;myfunc()&#8221;\\ /&#62;&#8221;;</p>
<p>}</p>
</p>
</div>
<p>where myfunc wil be your click event</p>
<p>egards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 19:03:45 +0200</pubDate>
        </item>
        <item>
        	<title>njcalugar on Formatter Checkbox handle change event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13802</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13802</guid>
        	        	<description><![CDATA[<p>I figured how to get the values when a "Save" button is clicked by using the getCol method.</p>
</p>
<p>Anyone know how to add a click event to the inputs created by the checkbox formatter?</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 01:01:32 +0200</pubDate>
        </item>
        <item>
        	<title>njcalugar on Formatter Checkbox handle change event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13798</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formatter-checkbox-handle-change-event#p13798</guid>
        	        	<description><![CDATA[<p>I apologize if this question is answered in the documentation or forum, but I am unable to find an answer to this.</p>
<p>I have a simple grid with three columns: id, name, isActive.</p>
<p>isActive is using the checkbox formatter. I simply want to capture changes to the isActive checkbox. I would like to know how to handle changes to each checkbox using JavaScript, but would also be interested in how to submit the status of all the checkboxes to the server when a "Save" button is clicked.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 12 Jan 2010 20:17:57 +0200</pubDate>
        </item>
</channel>
</rss>