<?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: Resizable jqGrid - my solution but needs improving</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving</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/feature-request/resizable-jqgrid-my-solution-but-needs-improving/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>darek_dade on Resizable jqGrid - my solution but needs improving</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving#p15057</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving#p15057</guid>
        	        	<description><![CDATA[<p>I am working on a treegrid and I need it to be resizable as well!</p>
]]></description>
        	        	<pubDate>Mon, 22 Feb 2010 23:23:01 +0200</pubDate>
        </item>
        <item>
        	<title>wolis on Resizable jqGrid - my solution but needs improving</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving#p15030</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving#p15030</guid>
        	        	<description><![CDATA[<p>Hi ppl,</p>
<p>My solution to getting a resizable jqGrid is to wrap it in a div that resizable, auto-fix the jqGrid to it, and re-calculate the size of the jqGrid when the div resizes:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8696' value='Select Code' data-codeid='sfcode8696' /></p>
<div class='sfcode' id='sfcode8696'>&#160; // make the box holding the list resizable..<br />&#160; $(&#39;#&#39;+block+&#39;_box&#39;).resizable({ handles: &#39;e, se&#39; });<br />&#160; $(&#39;#&#39;+block+&#39;_box&#39;).resize( function(){ <br />&#160;&#160;&#160;&#160; // TODO: can this resizing calculation be simplified?<br />&#160;&#160;&#160;&#160; var width = $(this).innerWidth();<br />&#160;&#160;&#160;&#160; var height = $(this).innerHeight();<br />&#160;&#160;&#160;&#160; jQuery(&#39;#&#39;+block+&#39;_list&#39;).setGridWidth(width);<br />&#160;&#160;&#160;&#160; var pagerHeight&#160;&#160; = $(&#39;#pg_&#39;+block+&#39;_pager&#39;).height();<br />&#160;&#160;&#160;&#160; var headerHeight&#160; = $(&#39;#&#39;+block+&#39;_box .ui-jqgrid-hbox:first&#39;).height();<br />&#160;&#160;&#160;&#160; var titleBarHeight = $(&#39;#&#39;+block+&#39;_box div.ui-jqgrid-titlebar:first&#39;).height(); <br />&#160;&#160;&#160;&#160; var labelHeight = $(&#39;#&#39;+block+&#39;_box tr.ui-jqgrid-labels:first&#39;).height(); <br />&#160;&#160;&#160;&#160; var extraBit = titleBarHeight/2;<br />&#160;&#160;&#160;&#160; headerHeight = parseInt(extraBit+titleBarHeight+labelHeight+pagerHeight); // 73;<br />&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160; $(&#39;#gview_&#39;+block+&#39;_list&#39;).height(height - pagerHeight);<br />&#160;&#160;&#160;&#160; $(&#39;#gview_&#39;+block+&#39;_list &#62; .ui-jqgrid-bdiv&#39;).height(height - headerHeight);
</div>
<p>Notice how I have to get the height of some of the jqGrid elements by a class name (eg .ui-jqgrid-hbox:first) as that specific item had no ID defined.</p>
<p>Im sure Im not the first person to want a resizable jqGrid, so what is the prefered method of doing this?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Mon, 22 Feb 2010 02:43:57 +0200</pubDate>
        </item>
</channel>
</rss>