<?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: Table to grid cells align issues</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues</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/table-to-grid-cells-align-issues/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tomtuo83 on Table to grid cells align issues</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15897</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15897</guid>
        	        	<description><![CDATA[<p>Yes ! this is it ! <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
<p>Hours i was searching, it was just under my eyes...</p>
<p>Thank you !</p>
</p>
<p>Tomtuo83</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 20:45:38 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Table to grid cells align issues</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15884</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15884</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>try with <strong>colModel</strong> and not colmodel - Javascript is case sensitive</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 13:01:48 +0200</pubDate>
        </item>
        <item>
        	<title>tomtuo83 on Table to grid cells align issues</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15858</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-to-grid-cells-align-issues#p15858</guid>
        	        	<description><![CDATA[<p>Hi.</p>
<p>I&#39;m new to jqgrid, what a wonderfull tool!</p>
<p>I need a little help to set columns align.</p>
<p>here is a sample of my code.</p>
</p>
<p>First a simple table</p>
<p>&#60;table border="1&#8243;&#160; id="balance"&#62;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;thead&#62;&#60;tr&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="COMPTE"&#62;COMPTE&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="LIBELLE" style="width: 400px"&#62;LIBELLE&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="TOTAL DEBIT" style="width: 130px" &#62;TOTAL DEBIT&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="TOTAL CREDIT" style="width: 130px" &#62;TOTAL CREDIT&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="SOLDE"style="width: 130px" &#62;SOLDE&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;TH id="REVISION"&#62;REVISION&#60;/TH&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;/tr&#62;&#60;/thead&#62;</p>
<p>&#60;tbody&#62;</p>
<p>&#60;tr&#62;&#60;td&#62;&#8230;sql results&#8230; &#60;/td&#62;&#60;/tr&#62;&#60;/tbody&#62;&#60;/table&#62;</p>
</p>
<p>Then a tableToGrid function</p>
<p>&#60;script&#62;</p>
<p>tableToGrid("#balance",</p>
<p>{colmodel:[{name:"COMPTE",align:"left"},</p>
<p>{name:"LIBELLE",align:"left"},</p>
<p>{name:"TOTAL DEBIT",align:"right"},</p>
<p>{name:"TOTAL CREDIT",align:"right"},</p>
<p>{name:"SOLDE",align:"right"},</p>
<p>{name:"REVISION",align:"left"}],</p>
<p>height:"auto", width:"1280&#8243;}); &#160;</p>
<p>&#60;/script&#62;</p>
</p>
<p>It works well, exept the align of the cells.</p>
<p>I tried to set align directly on the html table (&#60;td align=&#8230;.&#62;), it doesn&#39;t work</p>
<p>I tried to set align using the setColProp method ($("#balance").jqGrid(&#39;setColProp&#39;,&#39;SOLDE&#39;,{align:&#39;right&#39;})), it doesn&#39;t work</p>
<p>Everything is align on the left !</p>
</p>
<p>Am i doing something wrong? How can i set the align of the cells ?</p>
</p>
<p>Thank you for you help</p>
</p>
<p>Best regards</p>
</p>
<p>Tomtuo83</p>
]]></description>
        	        	<pubDate>Sun, 21 Mar 2010 22:05:45 +0200</pubDate>
        </item>
</channel>
</rss>