<?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: Set width based on %</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on</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/set-width-based-on/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>FredyC on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4550</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4550</guid>
        	        	<description><![CDATA[<p>getDimensions() is function from Prototype library. If you don&#39;t have it, you still can use $("tablew").width(), it&#39;s the same.</p>
]]></description>
        	        	<pubDate>Tue, 10 Feb 2009 14:57:41 +0200</pubDate>
        </item>
        <item>
        	<title>htantran on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4540</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4540</guid>
        	        	<description><![CDATA[<p>Hi seetharaman,</p>
<p>I tried to use this as your advice,</p>
<p>width:$(&#8221;tablew&#8221;).getDimensions().width-30,</p>
<p>However, it is even not show the grid.</p>
<p>Can you give me more detail or&#160;help me a demo code?</p>
<p>Thanks,</p>
<p>Tan&#160;</p></p>
]]></description>
        	        	<pubDate>Mon, 09 Feb 2009 16:53:07 +0200</pubDate>
        </item>
        <item>
        	<title>FredyC on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4516</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4516</guid>
        	        	<description><![CDATA[<p>Alright and what&#39;s purpose of this topic then ? 🙂</p>
]]></description>
        	        	<pubDate>Sun, 08 Feb 2009 10:09:10 +0200</pubDate>
        </item>
        <item>
        	<title>seetharaman on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4515</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4515</guid>
        	        	<description><![CDATA[<p>I dont have a problem. My solution works for me</p>
]]></description>
        	        	<pubDate>Sun, 08 Feb 2009 10:07:54 +0200</pubDate>
        </item>
        <item>
        	<title>FredyC on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4514</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4514</guid>
        	        	<description><![CDATA[<p>Interesting. Then i don&#39;t understand your problem 🙂 But i think that problem is in setting width in colModel. You should use function setGridWidth to set width to whole grid.</p>
]]></description>
        	        	<pubDate>Sun, 08 Feb 2009 10:00:04 +0200</pubDate>
        </item>
        <item>
        	<title>seetharaman on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4511</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4511</guid>
        	        	<description><![CDATA[<p>Not sure I fully understand your requirements. My requirement is similar to yours.</p>
<p>I would like to have the width of the jqGrid to be 30 pixels less than the width of another table I use in my application. That table is defined in terms %</p>
<p>This is what I use in colModel definition</p>
<p>&#160;&#160;&#160; width:$("tablew").getDimensions().width-30,</p>
<p>..</p>
<p>..</p>
<p>&#60;table&#160;&#160; border=1 id=&#39;tablew&#39; style=&#39;width:100%;&#39;&#62;</p>
</p>
<p>I use prototype.js along with the jqGrid for my application I use the methods in prototype library to get the pixel size of the other table and subtract 30 to get the new size and dynamically assign this to jqGrid table</p>
]]></description>
        	        	<pubDate>Sun, 08 Feb 2009 08:42:43 +0200</pubDate>
        </item>
        <item>
        	<title>FredyC on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4500</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4500</guid>
        	        	<description><![CDATA[<p>I think it&#39;s not possible. I was researching this few day ago (<a href="http://www.trirand.com/blog/?page_id=18/help/width-and-msie-issue" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....msie-issue</a>). Grid is built from two separate tables and width of the columns is computed and set to these columns. If you just set 100% width, browser computes width of these columns based on content which is different...So it would be nice mess 🙂</p>
]]></description>
        	        	<pubDate>Sat, 07 Feb 2009 13:58:03 +0200</pubDate>
        </item>
        <item>
        	<title>htantran on Set width based on %</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4493</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/set-width-based-on#p4493</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Another issue I faced is that: although I can set height: "100%", I cannot do it with width: "100%".</p>
<p>Question: is there anyway for me to set relative width (%) instead of fixing its value (pixel) ?</p>
<p>Thanks,</p>
<p>Tan</p>
]]></description>
        	        	<pubDate>Fri, 06 Feb 2009 18:03:48 +0200</pubDate>
        </item>
</channel>
</rss>