<?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: Trouble with layout not adjusting based on scrollbar visibility</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility</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/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>chnicola on Trouble with layout not adjusting based on scrollbar visibility</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility#p20838</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility#p20838</guid>
        	        	<description><![CDATA[<p>Alright so I had to write a bit of a hack to make this work.&#160; I really don&#39;t like it so I would definitely appreciate other suggestions.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1100' value='Select Code' data-codeid='sfcode1100' /></p>
<div class='sfcode' id='sfcode1100'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#fileList&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#34;videoupload.axd?request=getfiles&#38;studyId=&#60;%= Controller.StudyId %&#62;&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#34;json&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;File&#39;, &#39;Size&#39;, &#39;Date Uploaded&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;FileName&#39;, index: &#39;File&#39;, width: 225 },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;FileSize&#39;, index: &#39;FileSize&#39;, width: 75 },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;DateCreated&#39;, index: &#39;DateCreated&#39;, width: 150 }<br />&#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;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#34;desc&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#34;id&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: 177,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;shrinkToFit: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadComplete: function() { adjustGridLayout(); }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;function adjustGridLayout() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var r = jQuery(&#34;#fileList&#34;).getGridParam(&#39;reccount&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (r &#60;= 8) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#fileList&#34;).setGridWidth(450, false);<br />&#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;else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#fileList&#34;).setGridWidth(450, true);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</div></p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 19:51:05 +0200</pubDate>
        </item>
        <item>
        	<title>chnicola on Trouble with layout not adjusting based on scrollbar visibility</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility#p20741</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/trouble-with-layout-not-adjusting-based-on-scrollbar-visibility#p20741</guid>
        	        	<description><![CDATA[<p>JQGrid creates a space along the header for the scrollbar offset when a scrollbar is shown.&#160; The problem I am having is that it is not removing this when the scrollbar is not shown.&#160; Setting the offset to 0 fixes this however then if I do have a scrollbar I end up with a horizontal scrollbar as well.</p>
</p>
<p>Any suggestions or help would be much appreciated. Thanks.</p>
<p>Here is my JS:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit201' value='Select Code' data-codeid='sfcode201' /></p>
<div class='sfcode' id='sfcode201'>jQuery(document).ready(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#fileList&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#34;videoupload.axd?request=getfiles&#38;studyId=&#60;%= Controller.StudyId %&#62;&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#34;json&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;File&#39;, &#39;Size&#39;, &#39;Date Uploaded&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;FileName&#39;, index: &#39;File&#39;, width: 225 },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;FileSize&#39;, index: &#39;FileSize&#39;, width: 75 },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{ name: &#39;DateCreated&#39;, index: &#39;DateCreated&#39;, width: 150 }<br />&#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;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#34;desc&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#34;id&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;autoWidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width: &#34;100%&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;shrinkToFit: true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</div>
]]></description>
        	        	<pubDate>Thu, 11 Nov 2010 01:04:27 +0200</pubDate>
        </item>
</channel>
</rss>