<?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: Autowidth with jquery Tabs</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs</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/autowidth-with-jquery-tabs/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Asshiah on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17171</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17171</guid>
        	        	<description><![CDATA[<p>I have changed the event I use from "select" to "show" and it works just fine!</p>
</p>
<p>Here is a code example:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1045' value='Select Code' data-codeid='sfcode1045' /></p>
<div class='sfcode' id='sfcode1045'>$(document).ready(function() {</p>
<p>&#160;&#160;&#160; var initialized = [false,false,false,false];</p>
<p>&#160;&#160; &#160;$(&#39;#tabs&#39;).tabs<br />&#160;&#160; &#160;(<br />&#160;&#160; &#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; show: function(event, ui)<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(ui.index == 0 &#38;&#38; !initialized[0])<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creationGrid0();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initialized[0] = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else if(ui.index == 1 &#38;&#38; !initialized[1])<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creationGrid1();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initialized[1] = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else if(ui.index == 2 &#38;&#38; !initialized[2])<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creationGrid2();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initialized[2] = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else if(ui.index == 3 &#38;&#38; !initialized[3])<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creationGrid3();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initialized[3] = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;);<br />});</p>
</div>
<p>Hope this will help someone.</p>
]]></description>
        	        	<pubDate>Fri, 14 May 2010 14:54:25 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17104</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17104</guid>
        	        	<description><![CDATA[<p>Well, still the same problem whatever I try.</p>
</p>
<p>Is it possible that in the latest jqgrid release, the grid width calculation mecanism has changed?</p>
<p>This would explain why the jquery.tabs events trick is not working.</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 14:18:59 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17058</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17058</guid>
        	        	<description><![CDATA[<p>I still can&#39;t figure it out. I have tried looking in the jqgrid code without success.</p>
</p>
<p>Any idea?</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 12:48:53 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17032</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p17032</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I had the same problem sanchitos had and I tried solving it with what is explained here. However, I still have the same problem.</p>
</p>
<p>I am using jquery-ui tabs and a jqgrid in each tab.</p>
<p>Each grid has the autowidth property set to true in order to have the same width as the parent tab.</p>
</p>
<p>I am only creating a tab&#39;s grid on its first selection in order for the width calculation to work correctly.</p>
</p>
<p>However, only the first tab gets its jqgrid&#39;s width set correctly to the tab width.</p>
</p>
<p>Here is the code I use:</p>
</p>
<p><span style="text-decoration: underline;">HTML:</span></p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4940' value='Select Code' data-codeid='sfcode4940' /></p>
<div class='sfcode' id='sfcode4940'>
<p>&#60;div id=&#34;tabs&#34;&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;ul&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;li&#62;&#60;a href=&#34;#tab1&#34;&#62;tab1&#60;/a&#62;&#60;/li&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;li&#62;&#60;a href=&#34;#tab2&#34;&#62;tab2&#60;/a&#62;&#60;/li&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;/ul&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;div id=&#34;tab1&#34;&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;table id=&#34;grid1&#34;&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;div id=&#34;pager1&#34;&#62;&#60;/div&#62; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;/div&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;div id=&#34;tab2&#34;&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;br /&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;table id=&#34;grid2&#34;&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;div id=&#34;pager2&#34;&#62;&#60;/div&#62; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#60;/div&#62;</p>
</div>
<p><span style="text-decoration: underline;">JS:</span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit9841' value='Select Code' data-codeid='sfcode9841' /></p>
<div class='sfcode' id='sfcode9841'>$(document).ready(function() {<br />&#160;&#160;&#160; grid1Created = false;<br />&#160;&#160;&#160; grid2Created = false;</p>
<p>&#160;&#160; &#160;$(&#39;#tabs&#39;).tabs<br />&#160;&#160; &#160;(<br />&#160;&#160; &#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; selected:-1,<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; select: function(event, ui)<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var selected = ui.index;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(selected == 0 &#38;&#38; !grid1Created)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creategrid1();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid1Created = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else if(selected == 1 &#38;&#38; !grid2Created)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; creategrid2();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid2Created = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;);<br />&#160;&#160; &#160;$(&#39;#tabs&#39;).tabs(&#39;select&#39;, 0);<br />});</p>
</div>
<p>Where creategrid1 and creategrid2 are the fonctions that create the grids.</p>
</p>
<p>The thing is the grids are created normally only on their tab&#39;s first selection, but only the first grid has a width equal to the tab width.</p>
</p>
<p>Both grids use the following parameters:</p>
</p>
<ul>
<li>autowidth: true</li>
</ul>
<ul>
<li>shrinkToFit: false</li>
</ul>
<p>I would really appreciate any help.</p>
</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Mon, 10 May 2010 15:29:47 +0300</pubDate>
        </item>
        <item>
        	<title>Dmoney on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p13229</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p13229</guid>
        	        	<description><![CDATA[<p>Im using tabs as well except I&#39;ve created a seperate file for my grid and I use the ajax option in jquery tabs to display the grid.&#160; It works great except the autowidth is not working. The grid does not expand to fill the available space inside the tab.&#160;&#160; I want to continue to load the grid with the ajax method b/c the data for the grid could possible change depending on user input in the other tabs or they may choose not to look at the grid at all. I&#39;ve searched the forums here but have not found any solution to this.</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 05:07:29 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12923</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12923</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also maybe you should look into the code connected with the tabs creation/removing again</p>
<p>If the tab is removed the grid is removed too, since the grid element is a child of the tab div.</p>
<p>Will try to help if you provide a link to the problem.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 11 Dec 2009 14:15:10 +0200</pubDate>
        </item>
        <item>
        	<title>pvdemael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12874</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12874</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>Thanks for your answer. I am not a js and jquery specialist but am eager to learn.</p>
</p>
<p>I looked at the code of the demo site with FireBug as you suggested and I think I figured out what you do:</p>
<p>1) The main tab is created with an add event function defined (for closing tabs)</p>
<p>2) A treeGrid is created for the main menu with an associated url for every leaf of the tree (eg jsonex.html)</p>
<p>3) An onSelectRow event callback is created: On selection of a leaf of the treeGrid, the existence of the tab associated with the leaf is checked.&#160;If the tab does not exists, an ajax request is sent to the server which returns the html of the associated url.&#160;The html includes a script tag which defines the grid with the data.</p>
<p>This looks very simple and it works perfectly <img class="spSmiley" style="margin:0" title="Wink" src="http://www.trirand.com/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" />.</p>
</p>
<p>This is my application:</p>
<p>I have a main menu in the left pane with. Just ordinary links, but prettified with jquery and ajax requests.</p>
<p>Each time a menu item is clicked, a tab navigation should show on top of the right pane with a grid in the first tab. Tabs can be added or removed by clicking on rows of the grid.</p>
<p>When another menu item is clicked, all existing tabs and grids should be removed to make place for a new tab and new grids.</p>
</p>
<p>Is it better to keep the main tab navigation and remove all tabs?</p>
<p>Should I keep the grids when another main menu item is clicked? I don&#39;t think so, as I want to empty the tabs on clicking a main menu item.</p>
<p>Is the grid completely removed if the tab is closed?</p>
<p>What am I doing wrong with my tab creation?</p>
</p>
<p>Could you please help me out with this one? What is the best way to do this in terms of architecture? I really want to avoid design flaws.</p>
</p>
<p>Thank you very much!</p>
]]></description>
        	        	<pubDate>Wed, 09 Dec 2009 14:34:26 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12821</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12821</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think the problem is how you construct your tabs. Also if the grid exists you should not do anything, the tabb UI just show this content. You can look into the demo how is this organized.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Dec 2009 18:05:40 +0200</pubDate>
        </item>
        <item>
        	<title>pvdemael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12796</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p12796</guid>
        	        	<description><![CDATA[<p>Hi markw65 and others,</p>
</p>
<p>Do you accidentally have an example of this?</p>
<p>I&#39;ve created a page with 2 tabs, one with a grid, the other with a form.</p>
<p>When the page is loaded, I run a function to create the tabs and grid. The grid is shown first and is ok. When I click on the Form tab, the form shows. Going back to the Grid tab, I does not show anything. I am probably making a very stupid mistake.</p>
<p>I tried another solution <a href="/blog/?page_id=393/help/jqgrid-with-jquery-ui-tabs-and-json/" target="_blank">from the forum</a> but #volunteer_grid does not exist, looking in the generated html, I see grod_volunteer_grid. What is this about, am I missing something.</p>
</p>
<p>Off topic, sorry for that, I was able to do grid resizing with window resizing, how do I do that with jquery tabs?</p>
</p>
<p>function volunteer_tabs_and_grid() {</p>
<p>&#160;&#160;&#160; var grid_exists=0;</p>
<p>&#160;&#160;&#160; $("#navmenu").tabs({<br />&#160;&#160;&#160; &#160;&#160;&#160; load: function(event, ui) {<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (ui.index==0)&#160; { // only show grid in first tab<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (grid_exists)&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; alert(&#39;grid exists&#39;); // test if this works, it does, how can I show the grid then?<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; volunteer_grid();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; grid_exists = 1;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do nothing for now<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
<p>})</p>
</p>
<p>&#160;&#160;&#160; $("#navmenu").tabs(&#39;add&#39;, &#39;index.php/volunteer/show_list&#39;, &#39;Lijst&#39;);<br />&#160;&#160;&#160; $("#navmenu").tabs(&#39;add&#39;, &#39;index.php/volunteer/show_form&#39;, &#39;Form&#39;);<br />&#160;&#160;&#160; $("#navmenu").tabs(&#39;option&#39;, &#39;ajaxOptions&#39;, { type: "POST" });</p>
</p>
<p>}</p>
]]></description>
        	        	<pubDate>Mon, 07 Dec 2009 17:21:11 +0200</pubDate>
        </item>
        <item>
        	<title>michael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11104</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11104</guid>
        	        	<description><![CDATA[<p>Got that. Thanks!</p>
]]></description>
        	        	<pubDate>Tue, 27 Oct 2009 02:28:17 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11074</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11074</guid>
        	        	<description><![CDATA[<p>Well, use the tabselect event, and keep a flag to say whether or not you&#39;ve created the grid...</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 09:40:46 +0200</pubDate>
        </item>
        <item>
        	<title>michael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11067</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11067</guid>
        	        	<description><![CDATA[<p>Thanks again Mark. Any tip of a specific event or function for this?</p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 01:26:15 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11010</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11010</guid>
        	        	<description><![CDATA[<p>It&#39;ll do that if you create it every time the tab is selected.</p>
</p>
<p>I recommend creating it once, the first time its selected, and never again...</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Fri, 23 Oct 2009 00:10:37 +0300</pubDate>
        </item>
        <item>
        	<title>michael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11005</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11005</guid>
        	        	<description><![CDATA[<p>From my experience creating the grid when a tab is selected creates multiple duplicated navGrid buttons when the tab is reselected. Anyone else experiencing this?</p>
]]></description>
        	        	<pubDate>Thu, 22 Oct 2009 20:38:25 +0300</pubDate>
        </item>
        <item>
        	<title>jmav on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11001</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p11001</guid>
        	        	<description><![CDATA[<p>I better to create grid when the tab is selected.</p>
<p>Use tabs event: <a href="http://docs.jquery.com/UI/Tabs#event-show" rel="nofollow" target="_blank"><a href="http://docs.jquery.com/UI/Tabs" rel="nofollow">http://docs.jquery.com/UI/Tabs</a>.....event-show</a></p>
</p>
<p>Resize functions that i made</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/feature-request/Resizable%20grid/#p10996" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....id/#p10996</a></p>
</p>
<p>You can attach it on the same tab event.</p>
]]></description>
        	        	<pubDate>Thu, 22 Oct 2009 15:28:37 +0300</pubDate>
        </item>
        <item>
        	<title>michael on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10976</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10976</guid>
        	        	<description><![CDATA[<p>Mark, that is very helpful. Thanks.</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 21:18:14 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10572</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10572</guid>
        	        	<description><![CDATA[<p>The default for tabs is that hidden tabs get &#8220;display:none&#8221;. The result of that is that the container size is reported as zero.</p>
</p>
<p>So when the grid in the hidden container initializes, /its/ container has zero size, and it sizes itself accordingly.</p>
</p>
<p>You have a couple of options:</p>
<p>&#160;- you can add your own css to make the hidden tab content visible, but offscreen:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4628' value='Select Code' data-codeid='sfcode4628' /></p>
<div class='sfcode' id='sfcode4628'>.ui-tabs .ui-tabs-hide {<br />&#160;&#160;&#160; position: absolute;<br />&#160;&#160;&#160; left:-10000px;<br />&#160;}</div>
</p>
<p>- you can defer creating the grids until their tabs are selected (use the tabselect event).</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2795' value='Select Code' data-codeid='sfcode2795' /></p>
<div class='sfcode' id='sfcode2795'>
<p>$(mytab).tabs({selected:-1,select:mygridcreatefn});</p>
<p>$(mytab).tabs(&#8221;select&#8221;, 0);</p>
</div>
<p>Where mygridcreatefn creates the grid for the selected tab if it doesnt already exist.</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 16:26:05 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Autowidth with jquery Tabs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10570</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidth-with-jquery-tabs#p10570</guid>
        	        	<description><![CDATA[<p>Here&#39;s the thing:</p>
<p>I have two tabs on a page with jqgrids on each one.</p>
<p>Both jqgrids have autowidth property set, the problem is when page loads the first grid is adjusted to the size of the container but when i clicked the second tab the second grid is not adjusting to the size of the container.</p>
<p><a href="http://www.revolucion7.com/wp-content/uploads/2009/10/jqgridp1.JPG"><img src="http://www.revolucion7.com/wp-content/uploads/2009/10/jqgridp1.JPG" width="100"  class="sfimageleft spUserImage" alt="" /><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>
<p>Code:</p>
</p>
<p>&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/Idiomas/DatosGrid/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;,&#160; &#39;Nombre&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;id_idioma&#39;, index: &#39;id_idioma&#39;, width: 100, align: &#39;left&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatter: &#39;showlink&#39;, formatoptions: { baseLinkUrl: &#39;/Idiomas/&#39;, showAction: &#39;Edit&#39;, addParam: &#39;&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;nombre&#39;, index: &#39;nombre&#39;, width: 100, align: &#39;left&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(NOMBRE_AREA_PAGINACION),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: tamanoPagina,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [5, 10, 15, 20],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;nombre&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Idiomas&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid(NOMBRE_AREA_PAGINACION, { edit: false, add: false, del: false, refresh: false, search: false });<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID_SELECCIONADOS).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/Idiomas/DatosGrid/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;,&#160; &#39;Nombre&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;id_idioma&#39;, index: &#39;id_idioma&#39;, width: 100, align: &#39;left&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatter: &#39;showlink&#39;, formatoptions: { baseLinkUrl: &#39;/Idiomas/&#39;, showAction: &#39;Edit&#39;, addParam: &#39;&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;nombre&#39;, index: &#39;nombre&#39;, width: 100, align: &#39;left&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;nombre&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Idiomas&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160; });</p>
</p>
<p>Html:</p>
<p>&#60;div id="tabs"&#62;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;ul&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;li&#62;&#60;a href="#tab-1"&#62;TAB1&#60;/a&#62;&#60;/li&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#60;li&#62;&#60;a href="#tab-2"&#62;TAB2&#60;/a&#62;&#60;/li&#62;&#60;/ul&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;div id="tab-1"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#60;table id="Integra2_Lista" cellpadding="0" cellspacing="0"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id="Integra2_Paginacion" class="scroll" style="text-align: center;"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;div id="tab-2"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id="Integra2_SeleccionadosLista" cellpadding="0" cellspacing="0"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;/div&#62;</p>
</p>
<p>Thank you guys, any guess, what might be happening, how can i fix it or if it&#39;s just a normal behavior.</p></p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 14:21:00 +0300</pubDate>
        </item>
</channel>
</rss>