<?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: Dynamic Checkboxes in form but not table</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table</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/dynamic-checkboxes-in-form-but-not-table/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Dynamic Checkboxes in form but not table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22229</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22229</guid>
        	        	<description><![CDATA[<p>Instead of usage of $.get(&#39;/async/groups.lasso&#39;,{x:1}, ...); you can use dataUrl option of the <a href="/jqgridwiki/doku.php?id=wiki:common_rules#editoptions" target="_blank">editoptions</a>.</p>
<p>About your problem with multiselect elements it is difficult to recommend you one way. You can either use multilelect elements (see <a href="http://stackoverflow.com/questions/4984886/does-jquery-jqgrid-edit-form-support-fields-that-are-multiselect/4985705#4985705" target="_blank">the answer</a> with <a href="http://www.ok-soft-gmbh.com/jqGrid/SelectWithMultiselect.htm" target="_blank">the demo</a>) or <a href="/jqgridwiki/doku.php?id=wiki:custom_formatter" target="_blank">custom formatter</a> with <a href="/jqgridwiki/doku.php?id=wiki:common_rules#custom" target="_blank">custom editing</a> which do this (see <a href="http://stackoverflow.com/questions/4987123/in-jqgrid-is-there-anyway-to-use-ajax-to-get-data-for-your-custom-element/4987250#4987250" target="_blank">this</a> and <a href="http://stackoverflow.com/questions/2825000/jqgrid-multi-checkbox-custom-edittype-solution" target="_blank">this</a>).</p>
<p>Another way could be to use additional multiselect grid for editing purpose.</p>
<p>One more option is to use many columns with checkboxes. To make all more compact I use column headers with vertical texts. See <a href="http://stackoverflow.com/questions/3974324/jqgrid-using-multiple-methods-to-filter-data/3979490#3979490" target="_blank">the answer</a> for example, with <a href="http://www.ok-soft-gmbh.com/jqGrid/CheckboxesWithVerticalHeaders1.htm" target="_blank">the demo</a>. I use personally frequently the way in my projects. The main advantage of the way is simple filtering. Combining this way with the <a href="/jqgridwiki/doku.php?id=wiki:toolbar_searching" target="_blank">toolbar filtering</a>&#160;having <strong>stringResult:true</strong> and <a href="/jqgridwiki/doku.php?id=wiki:advanced_searching" target="_blank">advanced searching</a> one can gives users easy way to analyse the displayed data. The main disadvantage is: the vertical textes looks not perfect in the Internet Explorer, but the tooltips on the column header (see&#160;<a href="/jqgridwiki/doku.php?id=wiki:options" target="_blank">headertitles:true</a>) reduce the problem.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 27 Feb 2011 23:13:25 +0200</pubDate>
        </item>
        <item>
        	<title>Steffan on Dynamic Checkboxes in form but not table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22225</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22225</guid>
        	        	<description><![CDATA[<p>I&#39;m still hoping someone can chine in on checkboxes but perhaps the multiple select is the best option. Is there a way to add tool tips to the multiple select directing how to select multiple?</p>
</p>
<p>Anyway here is what I used. If you have suggestions on how to improve this, let me know. It seems there has to be a better way to get the groups on onload without wrapping the grid in the get statement.</p>
<p>$.get(&#39;/async/groups.lasso&#39;,{x:1}, function(groups){&#160;</p>
</p>
<p>$("#navgrid").jqGrid({</p>
<p>url:"/async/users.lasso",</p>
<p>datatype: "XML",</p>
<p>hidegrid: false,</p>
<p>colNames:["User ID","First Name","Last Name","Email","Password","Groups","Notes","Admin"],</p>
<p>colModel:[</p>
<p>{name:&#39;id&#39;,			index:&#39;id&#39;, 		width:55,	editable:false,	editoptions:{readonly:true,size:10}, hidden:true},</p>
<p>{name:&#39;firstname&#39;,	index:&#39;firstname&#39;, 	width:100,	editable:true,	editoptions:{size:25}, 	editrules:{required:true}},</p>
<p>{name:&#39;lastname&#39;,	index:&#39;lastname&#39;, 	width:100,	editable:true,	editoptions:{size:25}, 	editrules:{required:true}},</p>
<p>{name:&#39;email&#39;,		index:&#39;email&#39;, 		width:100, 	editable:true,	editoptions:{size:25}, 	editrules:{email:true, required:true}},</p>
<p>{name:&#39;password&#39;,	index:&#39;password&#39;, 	width:100, 	editable:true,	editoptions:{size:25},	editrules:{edithidden:true}, hidden:true },</p>
<p>{name:&#39;groups&#39;,		index:&#39;groups&#39;, 	width:100,	editable:true,	edittype:"select",	editoptions:{multiple:true, size:3, value: groups }, sortable:false},</p>
<p>{name:&#39;notes&#39;,		index:&#39;notes&#39;, 		width:200,	editable:true,	edittype:"textarea",	editoptions:{rows:"3",cols:"26"}, sortable:false},</p>
<p>{name:&#39;isadmin&#39;,	index:&#39;isadmin&#39;,	width:60,	editable:true,	edittype:"checkbox", 	editoptions:{value:"Yes:No"}, align:"center" }</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>pager: &#39;#pagernav&#39;,</p>
<p>sortname: "id",</p>
<p>viewrecords: true,</p>
<p>sortorder: "desc",</p>
<p>caption:"Existing Users",</p>
<p>editurl:"/async/users.lasso",</p>
<p>height:210</p>
<p>});</p>
<p>$("#navgrid").jqGrid(&#39;navGrid&#39;,&#39;#pagernav&#39;,</p>
<p>{}, //options</p>
<p>{height:320,reloadAfterSubmit:false}, // edit options</p>
<p>{height:320,reloadAfterSubmit:false}, // add options</p>
<p>{reloadAfterSubmit:false}, // del options</p>
<p>{} // search options</p>
<p>);</p>
</p>
<p>},"json");</p></p>
]]></description>
        	        	<pubDate>Sun, 27 Feb 2011 21:04:08 +0200</pubDate>
        </item>
        <item>
        	<title>Steffan on Dynamic Checkboxes in form but not table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22224</guid>
        	        	<description><![CDATA[<p>Ok, I&#39;m a bit closer. I tried a multiple select which will do the same thing but the checkboxes are a bit nicer. Also, is how to load those multiple select values and how do you load one&#39;s values and set it as selected? Does it require an ajax query to get the groups and somehow set the selected one upon showing the edit form??</p>
]]></description>
        	        	<pubDate>Sun, 27 Feb 2011 19:31:48 +0200</pubDate>
        </item>
        <item>
        	<title>Steffan on Dynamic Checkboxes in form but not table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22223</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22223</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to figure out if my description is confusing. On a regular form, I have those checkboxes shown in my post which are pulled from a MySQL table. How can I get those to load into the jqGrid form for adding a new records or for editing purposes?&#160;</p>
]]></description>
        	        	<pubDate>Sun, 27 Feb 2011 19:09:33 +0200</pubDate>
        </item>
        <item>
        	<title>Steffan on Dynamic Checkboxes in form but not table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22220</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-checkboxes-in-form-but-not-table#p22220</guid>
        	        	<description><![CDATA[<p>I am converting from a multi page scenario of having a page for adding and a page for editing/deleting. The grid is wonderful for this purpose. One thing I am not sure how to do is on my normal add page is I display a bunch of checkboxes of options pulled from a database and those options are then added to a table when submitted.</p>
<p>Here is an example of how I show the options:</p>
<p><a href="http://execuchoice.net/solutions/checkboxes.jpg"><img src="http://execuchoice.net/solutions/checkboxes.jpg" width="100"  class="sfimageleft spUserImage" alt="checkboxes" /><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>Keep in mind these are dynamic and will change as more are added. My problem is how to get them to show in the form but not the table. I can serve these as the grid is loaded but how would I build that into the table?</p>
]]></description>
        	        	<pubDate>Sun, 27 Feb 2011 17:13:52 +0200</pubDate>
        </item>
</channel>
</rss>