<?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: Scroll option causs horz scroll bar to appear</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear</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/bugs/scroll-option-causs-horz-scroll-bar-to-appear/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rayson on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8439</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8439</guid>
        	        	<description><![CDATA[<p>Dear Tony,</p>
<p>You are right, the DOCTYPE definition really fixed it. Thanks a lot!</p>
<p>Best regards,</p>
<p>Rayson</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 21:48:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8401</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8401</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You missed a DOCTYPE declaration.</p>
<p>More you can find here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:how_to_install" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....to_install</a></p>
</p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 05:16:19 +0300</pubDate>
        </item>
        <item>
        	<title>Rayson on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8395</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8395</guid>
        	        	<description><![CDATA[<p>Dear Tony,</p>
<p>I just used the sample for testing with nothing else, here is my header:</p>
<p>&#60;html&#62;<br />&#60;head&#62;<br />&#60;META HTTP-EQUIV="expires" CONTENT=0&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="css/redmond/jquery-ui-1.7.2.custom.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" href="css/ui.jqgrid.css" /&#62;<br />&#60;script type="text/javascript" src="js/min/jquery-1.3.2.min.js"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="js/min/jquery-ui-1.7.2.custom.min.js"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="js/min/jquery.jqGrid.min.js"&#62;&#60;/script&#62;<br />I tried removing "jquery-ui-1.7.2.custom.css" but still have the horiztontal scroll bar. I believe there are some problem in auto column width adjustment. By the way, I&#39;m using Firefox 3.5 for testing on this problem.</p>
<p>Best regards,</p>
<p>Rayson</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 04:39:34 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8365</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8365</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This example - as your post work as expected in my demo- no scrollbars. Also check your style.</p>
<p>Recommendation - in the html page use only the grid and ui.jqgrid.css and nothing more. See the result.</p>
<p>I thing that other css setting causes the problem - or at least download the demo and experiment with these options to see what is.</p></p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 04:52:13 +0300</pubDate>
        </item>
        <item>
        	<title>Rayson on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8363</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8363</guid>
        	        	<description><![CDATA[<p>In the sample code, when height: &#39;30%&#39;, with default settings (shrinkToFit:true and grid width not set), the horizontal scroll bar still appears. I think the calculation of grid width did missed something.</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 04:34:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8360</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8360</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Right now I understand. Also If setting shrinkToFit to false it is a good idea to set a grid width. The purpose of shrinkToFit option is:</p>
<p>If set to false &#8211; all the column have the setted width following the rules:</p>
<p>I. If the grid width is set then</p>
<p>I.1. if the width is less than the sum of visible column width &#8211; the grid have horizontall scrolbar</p>
<p>I.2 if the width is greater than the sum of visible column width &#8211; you will not have horizontall scrollbar</p>
</p>
<p>II. If the gridwidth is not set</p>
<p>1. You will have allway horizontall scrollbar &#8211; since the <strong>calculated</strong> width of grid does not include the borders and padding of the cells.</p>
</p>
<p>Recommendation: when&#160; shrinkToFit is set to false it is good idea to set the grid width (that is the main reasoin for this option)</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 03:03:59 +0300</pubDate>
        </item>
        <item>
        	<title>Rayson on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8359</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8359</guid>
        	        	<description><![CDATA[<p>Dear Tony,</p>
<p>It seems the column width was adjusted (when shrinkToFit: true) without considering the width of vertical scroll bar. The horizontal scroll bar appears when I set height to 30% or when I set height to 80% and shrinkToFit to false. Below code I used to reproduce the problem in Firefox.</p>
<p>&#160;&#160;&#160; jQuery("#lists2").jqGrid({</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; datatype: "local",<br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:55},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name asc, invdate&#39;, width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right", formatter: &#39;number&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right", formatter: &#39;number&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right", formatter: &#39;number&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; height: &#39;30%&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; //height: &#39;80%&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; //shrinkToFit: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; &#160;&#160;&#160; scroll: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pagers2&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160; &#160;&#160;&#160; caption:"JSON Example",<br />&#160;&#160;&#160; &#160;&#160;&#160; multiselect: false<br />&#160;&#160;&#160; }).navGrid(&#39;#pagers2&#39;,{edit:false,add:false,del:false});<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; var mydata = [<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160; &#160;&#160;&#160; {id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}<br />&#160;&#160;&#160; &#160;&#160;&#160; ];<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; for(var i=0;i&#60;=mydata.length;i++)<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#lists2").addRowData(i+1,mydata[i]);</p>
<p>Best regards,</p>
<p>Rayson</p></p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 02:43:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8343</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8343</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In order to resolve the problem, please post your code.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 23:54:24 +0300</pubDate>
        </item>
        <item>
        	<title>Rayson on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8293</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p8293</guid>
        	        	<description><![CDATA[<p>Dear Tony,</p>
<p>I have the same problem while using Firefox 3.5. I tried to adjust <span class="search_hit">scrollOffset in both directions (i.e. set it higher and lower than 18), but the situation seemed getting worse (the horizontal scroll bar shortened in both cases). </span>I tried to set the width of grid and check the difference. I found the horizontal scroll bar will not appear if I set the grid width to:</p>
<p>total of widths in colModel</p>
<p>+ number of columns + 1 (for grid lines)</p>
<p>+ 18 (width of vertical scroll bar)</p>
<p>+ 2 (grid border)</p>
<p>The horizontal scroll bar does not appear in IE 8 without setting grid width.</p>
<p>Best regards,</p>
<p>Rayson</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 03:31:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7846</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7846</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Look in the Changes.txt. You can adjust the scrollOffset parameter. Also in which browser is this?</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 16 Jul 2009 00:56:31 +0300</pubDate>
        </item>
        <item>
        	<title>happyfirst on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7829</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7829</guid>
        	        	<description><![CDATA[<p>When I look at the scroll demo, it looks like the vertical scrollbar is getting it&#39;s own&#160;distinct part&#160;of the header bar. In my case, the vertical scrollbar is sharing space with the last column and I think this is causing the horz scroll bar to appear.</p>
]]></description>
        	        	<pubDate>Wed, 15 Jul 2009 07:16:30 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7820</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7820</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Difficult to understand what you mean</p>
<p>Also post here you code.</p>
<p>Maybe you will need to set shrinkToFit to true in grid options</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 14 Jul 2009 12:49:31 +0300</pubDate>
        </item>
        <item>
        	<title>happyfirst on Scroll option causs horz scroll bar to appear</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7801</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scroll-option-causs-horz-scroll-bar-to-appear#p7801</guid>
        	        	<description><![CDATA[<p>I setup my grid to use the scroll bar for paging instead of a regular pager and while I do now get a vertical scrollbar, I also get a horizontal scrollbar. Is there any way to avoid this? Doesn&#39;t matter how wide I make my grid based on the columns, it&#39;s like the space needed for the scroll bar is being taken away from the columns instead of added on to them.</p>
]]></description>
        	        	<pubDate>Mon, 13 Jul 2009 19:33:36 +0300</pubDate>
        </item>
</channel>
</rss>