<?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: Making a MultiColumn Form for Edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit</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/making-a-multicolumn-form-for-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>markw65 on Making a MultiColumn Form for Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10577</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10577</guid>
        	        	<description><![CDATA[<blockquote>
<p>Nathan said:</p>
</p>
<p>On a side note, can a field span two columns ?&#160; For example a large memo field with two columns worth of input fields listed above?</p>
</blockquote>
<hr />
<p>There doesnt seem to be builtin support for this, but its quite easy to do it yourself using eg beforeShowForm. Here&#39;s what Im using:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit107' value='Select Code' data-codeid='sfcode107' /></p>
<div class='sfcode' id='sfcode107'>"beforeShowForm" : function(form) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; form = $(form);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("tr", form).each(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var inputs = $("&#62;td.DataTD:has(input,select)",this);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (inputs.length == 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var tds = $("&#62;td", this);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tds.eq(1).attr("colSpan", tds.length - 1);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tds.slice(2).hide();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</div>
<p>My form is layed out so that each row either has a single element, which I want to be the full width of the form, or it has multiple elements, which I want to leave alone.</p>
</p>
<p>So I check for exactly one input or select in the row, if found, I set the colspan of td 1 to be equal to the number of tds-1 (ie, the rest of the row), and hide the following tds. You would need to adapt the above to your own layout...</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 21:41:13 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Making a MultiColumn Form for Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10576</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10576</guid>
        	        	<description><![CDATA[<p>Thanks for the reply. I was using version 3.4 which does not support colpos/rowpos.&#160; I have subsequently updated my version for this project, rather seemlessly I might add 🙂&#160; Good work !</p>
</p>
<p>On a side note, can a field span two columns ?&#160; For example a large memo field with two columns worth of input fields listed above?</p>
</p>
<p>Nathan</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 19:50:42 +0300</pubDate>
        </item>
        <item>
        	<title>Rumen[Trirand] on Making a MultiColumn Form for Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10549</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10549</guid>
        	        	<description><![CDATA[<p>Tony just messaged me that there could be an easier way to do it, that is built-in into jqGrid. Please, take a look at this Wiki article</p>
</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....mmon_rules</a></p>
</p>
<p>and the formoptions part of it in particular. &#160;rowpos and colpos might be exactly what you need.</p>
</p>
<p>Hope this helps.</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 03:18:32 +0300</pubDate>
        </item>
        <item>
        	<title>Rumen[Trirand] on Making a MultiColumn Form for Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10542</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10542</guid>
        	        	<description><![CDATA[<p>Out of the box no, but you could probably modify the javascript source to at least provide scrollbar. If you use FireBug, you will see that the Edit Dialog Window is essentially a div with id "editmodeeditgrid" and has overflow:hidden. Overflow:hidden essentially hide the scrollbar, so just modifying this in javascript sources will address this.</p>
</p>
<p>&#60;div class="ui-widget ui-widget-content ui-corner-all ui-jqdialog jqmID1" id="editmodeditgrid" style="overflow: hidden</p>
</p>
<p>Of course, you could probably create another layout (2, 3 columns, etc) but it will require more tweaking.</p>
<p>Hope this helps.</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 01:59:24 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Making a MultiColumn Form for Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10518</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/making-a-multicolumn-form-for-edit#p10518</guid>
        	        	<description><![CDATA[<p>Hi:</p>
</p>
<p>I have a form for editting data posted to a grid. Works great except that the form is really long and scrolling the window does not scroll the form.&#160; The way to see the bottom of the form is to drag it up more and finish the data entry. Tedious and annoying to say the least.</p>
<p>Is there means to make the form controls appear in more than one column ?</p>
</p>
<p>ie:</p>
<p>Name: __________________&#160;&#160; Date: ________________</p>
<p>.... lots of other fields</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Submit&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cancel</p>
</p>
<p>Any help here would be great !</p>
</p>
<p>Thanks,</p>
</p>
<p>Nathan</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 10:27:34 +0300</pubDate>
        </item>
</channel>
</rss>