<?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: Pager positioning</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pager-positioning</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/pager-positioning/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>quailster on Pager positioning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19717</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19717</guid>
        	        	<description><![CDATA[<p>Thanks for the help. I actually found a different solution that&#39;s rather ugly. I just checked the generated source of the page and found that the pager is some kind of table. Then I just tried out random CSS styling since I&#39;m a newbie and came up with this:</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; $(document).ready(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; // ugly hack to get the pager to align left.<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $(&#39;.ui-pg-table tr td&#39;).css({&#39;text-align&#39;:&#39;left&#39;});<br />&#160;&#160; &#160;&#160;&#160;&#160; });</p></p>
]]></description>
        	        	<pubDate>Sat, 11 Sep 2010 18:30:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Pager positioning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19710</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19710</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Since the pager is divided in three equal parts, whan you create the grid with the smaller width there is no room for the pager elements at right.</p>
<p>There are a lot of ways to resolve. One of them is to set a zero width for the first two parts of the pager.</p>
<p>After constructing the grid do :</p>
<p>( I suppose your pager has a id - pager)</p>
<p>$("#pager_left, #pager_center", "#pager").width(0);</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 11 Sep 2010 14:47:10 +0300</pubDate>
        </item>
        <item>
        	<title>quailster on Pager positioning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19626</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-positioning#p19626</guid>
        	        	<description><![CDATA[<p>Hi. I am a Java programmer and just started with javascript stuff or web development in general, so please excuse my newbieness. I am using the jqgrid tag library for JSP, and I am having problem with positioning the pager to some place where it&#39;s visible. Currently, the grid looks like this:</p>
<p><a href="http://dl.dropbox.com/u/205354/Screen%20shot%202010-09-09%20at%201.53.29%20AM.png"><img src="http://dl.dropbox.com/u/205354/Screen%20shot%202010-09-09%20at%201.53.29%20AM.png" width="100"  class="sfimageleft spUserImage" alt="small grid" /><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>As you can see, I cannot see the pager. If I increase the width of the grid, I can see it:</p>
<p><a href="http://dl.dropbox.com/u/205354/Screen%20shot%202010-09-09%20at%201.54.47%20AM.png"><img src="http://dl.dropbox.com/u/205354/Screen%20shot%202010-09-09%20at%201.54.47%20AM.png" width="100"  class="sfimageleft spUserImage" alt="large grid" /><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>Unfortunately, I cannot make the grid that big just to see the pager.</p>
<p>Here&#39;s my code for the JSP that display the large grid width=900. The small grid has width=300. Note that the pager should still fit even with width=300.</p>
</p>
<p>&#60;sjg:grid id="readingsTableTwo" dataType="json" href="%{linkDeviceReadingsTwo}" gridModel="readings" altRows="true" rowList="10,15,20" rowNum="10" width="900" pager="true"&#62;</p>
<p>&#160; &#60;sjg:gridColumn name="time" index="time" title="Video Archive" sortable="false" /&#62;</p>
<p>&#160; &#60;sjg:gridColumn name="string" index="string" title="String" hidden="true" /&#62;</p>
<p>&#60;/sjg:grid&#62;</p>
</p>
<p>I have tried many things like setting pagerpos property and surround the tags with div that align everything to the left, creating a custom pager, setting the width smaller after page load, etc..</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; //$(document).ready(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#160;&#160; jQuery(&#39;#readingsTableTwo&#39;).jqGrid(&#39;setGridParam&#39;, {&#39;pagerpos&#39;: &#39;left&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#160;&#160;&#160; jQuery(&#39;#readingsTableTwo&#39;).jqGrid(&#39;setGridParam&#39;, {&#39;recordpos&#39;: &#39;left&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#160;&#160;&#160; jQuery(&#39;#readingsTableTwo&#39;).jqGrid(&#39;setGridParam&#39;, {pager: &#39;#myPager&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#160;&#160;&#160; jQuery(&#39;#readingsTableTwo&#39;).jqGrid(&#39;setGridWidth&#39;, &#39;300&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#160;&#160;&#160; jQuery(&#39;#readingsTableTwo&#39;).trigger(&#39;reloadGrid&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160; //});</p>
</p>
<p>I have done a search in this help form for threads with topic containing the word "pager", but none of them solved my problem.</p>
<p>Anyway, thank you in advance for helping!</p>
]]></description>
        	        	<pubDate>Thu, 09 Sep 2010 09:19:33 +0300</pubDate>
        </item>
</channel>
</rss>