<?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: make checkbox checked</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked</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/make-checkbox-checked/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>p_mendes on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p7441</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p7441</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I came across with a simular issue. It was resolved adding the &#39;formatter:&#39;checkbox&#39;&#39; option to the column array options in ColModel&#160;array. Now I can respond from server values like &#39;OK:NOK&#39;, &#39;Yes:No&#39;, &#39;1:0&#39;, etc.</p>
<p>hope this helps.</p>
<p>Mendes</p>
]]></description>
        	        	<pubDate>Wed, 24 Jun 2009 10:15:59 +0300</pubDate>
        </item>
        <item>
        	<title>tony on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6699</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6699</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>What I try to explain and undertand is what is the exact values from the DB that you send to the grid. With other words please put here the response from the server.</p>
<p>If your value from server that coresponds to the checkbox is 0 the checkbox is uncheced, if 1 checkbox will become checked.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 15 May 2009 02:05:07 +0300</pubDate>
        </item>
        <item>
        	<title>thdim on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6624</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6624</guid>
        	        	<description><![CDATA[<p>Hello, let me show you some screenshots to describe better what I mean.</p>
<p>I have the following grid</p>
<p><a href="http://www.jungleminds.nl/upload/public/image/forum/screen1.jpg"><img src="http://www.jungleminds.nl/upload/public/image/forum/screen1.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>This is database / xml driven. At the end of every record I have some checkboxes, witch they define in witch quarter a project belongs.</p>
<p>So far, so good.</p>
<p>But when it comes to edit there is the following problem</p>
<p>[Image Can Not Be Found]</p>
<p>As you can see all the checkboxes are always empty. This is because when I define them I don&#39;t know how to say ("make this check box been checked by default"). For example when I define an input field I can do this in the javascript file</p>
<p>{name:&#39;sector&#39;,index:&#39;sector&#39;,width:50,editable:true,edittype:"select",editoptions:{value:"&#60;?php echo $sector_options; ?&#62;"}},</p>
<p>How can I set a checkbox to start by default checked?</p>
<p>{name:&#39;q1&#39;,index:&#39;q1&#39;,width:37,align:&#39;center&#39;,editable:true,edittype:"checkbox",</p>
<p>editoptions:{value:"1:0"}},</p>
</p>
<p>p.s. I am almost sure that I use totally wrong way to succed what I want to do!</p>
<p>p.s.2 Really sorry, I know that I am starting to becoume really annoing, but I have to finish a project and I really don&#39;t have any idea how to do that!</p>
<p>p.s.3 thanks again and again and again.</p></p>
]]></description>
        	        	<pubDate>Tue, 12 May 2009 05:13:27 +0300</pubDate>
        </item>
        <item>
        	<title>tony on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6581</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Haw look the response from the server - if the data is in xml post a part from the xml, if the data is on json post the json data&#160; that comes from the server.</p>
<p>If you database return boolean 0,1 then you should</p>
<p>editoptions : {value:"1:0"}</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 09 May 2009 09:29:48 +0300</pubDate>
        </item>
        <item>
        	<title>thdim on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6542</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6542</guid>
        	        	<description><![CDATA[<p>I thing that I don&#39;t unterstaind what do you mean 🙁</p>
<p>In the database I store the value in a bool (0,1). I just want an example of that javascript rule witch will create the box checked and then I can make it act dynamic.</p>
<p>{name:&#39;q1&#39;,index:&#39;q1&#39;,width:37,align:&#39;center&#39;,editable:true,edittype:"checkbox",</p>
<p>editoptions:{value:"Yes:No"}},</p>
]]></description>
        	        	<pubDate>Thu, 07 May 2009 04:00:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6478</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I mean the data from server or from the array that is populated in the grid.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 05 May 2009 08:20:32 +0300</pubDate>
        </item>
        <item>
        	<title>thdim on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6418</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p6418</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>What about your data. How is provided. What values do you have for checkboxes?</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Hello Tony, thanks for answering</p>
<p>In the javascript I have:</p>
<p>{name:&#39;q1&#39;,index:&#39;q1&#39;,width:37,align:&#39;center&#39;,editable:true,</p>
<p>edittype:&#8221;checkbox&#8221;,editoptions:{value:&#8221;Yes:No&#8221;}},</p>
<p>the reult in HTML is:</p>
<p><span class="webdeveloper-display-form-details" title="&#60;input id=&#34;q1&#34; name=&#34;q1&#34; value=&#34;Yes&#34;&#62;">&#60;input id=&#8221;q1&#8243; name=&#8221;q1&#8243; value=&#8221;Yes&#8221;&#62;</span></p>
<p>and I would like to make it (depentes on the database values offcource)</p>
<p><span class="webdeveloper-display-form-details" title="&#60;input id=&#34;q1&#34; name=&#34;q1&#34; value=&#34;Yes&#34;&#62;">&#60;input id=&#8221;q1&#8243; name=&#8221;q1&#8243; value=&#8221;Yes&#8221; checked&#62;</span></p>
</p>
<p>any ideas? thanks a lot.</p>
]]></description>
        	        	<pubDate>Fri, 01 May 2009 04:22:54 +0300</pubDate>
        </item>
        <item>
        	<title>tony on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p5717</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p5717</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>What about your data. How is provided. What values do you have for checkboxes?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 01 Apr 2009 02:28:59 +0300</pubDate>
        </item>
        <item>
        	<title>thdim on make checkbox checked</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p5688</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/make-checkbox-checked#p5688</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I am trying&#160; to make a checkbox that will have the tag checked by default.</p>
<p>that is my code</p>
<p>{name:&#39;q1&#39;,index:&#39;q1&#39;,width:37,align:&#39;center&#39;,editable:true,edittype:&#8221;checkbox&#8221;,editoptions:{value:&#8221;Yes:No&#8221;}},</p>
<p>I am trying things like editoptions:{value:&#8221;Yes:No&#8221;, checked:&#8221;checked&#8221;} or checked:true, but nothing seems to work. I check the documentation very carefully and I couln&#39;t found something as well, any idea?</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Mon, 30 Mar 2009 10:09:39 +0300</pubDate>
        </item>
</channel>
</rss>