<?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: Expand Grid Button Left-Aligned?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/expand-grid-button-left-aligned</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/expand-grid-button-left-aligned/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Expand Grid Button Left-Aligned?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-grid-button-left-aligned#p7602</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-grid-button-left-aligned#p7602</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can apply this in your style which should be after the ui.jqgrid.css.</p>
<p>overwriting these properties</p>
<p>.ui-jqgrid .ui-jqgrid-title { ... }</p>
<p>.ui-jqgrid .ui-jqgrid-titlebar-close { ...}</p>
<p>in appropriate way</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 02 Jul 2009 03:06:47 +0300</pubDate>
        </item>
        <item>
        	<title>sBishop on Expand Grid Button Left-Aligned?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expand-grid-button-left-aligned#p7562</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expand-grid-button-left-aligned#p7562</guid>
        	        	<description><![CDATA[<p>Hey all,</p>
<p>&#160; &#160; I&#39;ve really been enjoying working with JQgrid, but I&#39;ve stumbled across a minor issue that I can&#39;t seem to resolve. Is there any simple way to alrign the button that toggles the entire grid between expanded or collapsed to the left of the caption text? I could fix the issue by simply setting the margin-left CSS property to a negative value or using the float property, but I&#39;m hoping to find a cleaner method to implement this.</p>
<p>The most effective solution to this would be to change the order in which the &#60;th&#62; element that contains the caption text and the &#60;td&#62; element which contains the button are generated, but I can&#39;t seem to figure out how to do this.</p>
<p>Here&#39;s the code that i&#39;m using to generate the table:</p>
<p>var $j = jQuery.noConflict();<br />$j(document).ready(function(){<br />&#160; var mygrid = $j("#s3list").jqGrid({<br />&#160;&#160;&#160; url:&#39;some.url&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160; colNames:[&#39;ColName1&#39;,&#39;ColName2&#39;, &#39;ColName3&#39;],<br />&#160;&#160;&#160; colModel:[&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;ColName1&#39;, index:"ColName1", width:250, sortable: true, sorttype: "int", search: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;ColName2&#39;, index:&#39;ColName2&#39;, width:250, sortable: true, sorttype: "date", datefmt: "dd-mm-yyyy", search: true, searchoptions:{dataInit:function(el){$j(el).datepicker({dateFormat:&#39;dd-mm-yy&#39;});} }},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;ColName3&#39;, index:&#39;ColName3&#39;, width:250, sortable: true, sorttype: "date", datefmt: "dd-mm-yyyy", search: true, searchoptions:{dataInit:function(el){$j(el).datepicker({dateFormat:&#39;dd-mm-yy&#39;});} }}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#s3pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30,40,50],<br />&#160;&#160;&#160; sortname: "ColName1",<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; altrows: true,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; height: &#39;100%&#39;,<br />&#160;&#160;&#160; imgpath: &#39;/jqGrid/themes/basic/images&#39;,<br />&#160;&#160;&#160; caption: &#39;Caption Name&#39;,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160; gridview : true<br />&#160; })<br />&#160; .navGrid(&#39;#s3pager&#39;,{edit:false,add:false,del:false,search:false,refresh:false, view:false})<br />&#160; .navButtonAdd("#s3pager",{caption:"Search",title:"Toggle Search Toolbar", buttonimg:"/jqGrid/themes/basic/images/find.gif",<br />&#160;&#160;&#160;&#160; onClickButton:function(){<br />&#160;&#160;&#160;&#160;&#160;&#160; mygrid[0].toggleToolbar()<br />&#160;&#160;&#160;&#160; }<br />&#160;&#160; })<br />&#160;&#160; .navButtonAdd("#s3pager",{caption:"Clear",title:"Clear Search", buttonimg:"/jqGrid/themes/basic/images/refresh.gif",<br />&#160;&#160;&#160;&#160;&#160; onClickButton:function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mygrid[0].clearToolbar()<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; });<br />&#160;&#160; mygrid.filterToolbar();<br />});</p>
</p>
<p>Also, here&#39;s the markup for the caption row that&#39;s generated. I&#39;ve added comments next to the elements that I mentioned above:</p>
<p>&#60;div style="width: 764px;" class="GridHeader"&#62;<br />&#160;&#160;&#160; &#60;table class="Header" border="0" cellpadding="0" cellspacing="0"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;tbody&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;tr&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;td class="HeaderLeft"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;img src="/jqGrid/themes/Sircon/images/spacer.gif" border="0"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;/td&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;Chapters&#60;/th&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // We want to put this element....<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;td class="HeaderButton"&#62;&#160; &#160;&#160; // After this element.<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;img src="/jqGrid/themes/Sircon/images/up.gif" border="0"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;/td&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;td class="HeaderRight"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;img src="/jqGrid/themes/Sircon/images/spacer.gif" border="0"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;/td&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;/tr&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;/tbody&#62;<br />&#160;&#160;&#160; &#60;/table&#62;<br />&#60;/div&#62;</p>
]]></description>
        	        	<pubDate>Tue, 30 Jun 2009 15:58:47 +0300</pubDate>
        </item>
</channel>
</rss>