<?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: Grid inside a tab / hidden container</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-inside-a-tab-hidden-container</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/grid-inside-a-tab-hidden-container/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>xgote on Grid inside a tab / hidden container</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-inside-a-tab-hidden-container#p14659</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-inside-a-tab-hidden-container#p14659</guid>
        	        	<description><![CDATA[<p>I modified this style (after drinking caffeine):</p>
<pre>.tabs div {<br />    display: none;<br />}<br /></pre>
<p><strong>To</strong></p>
<pre>#step1, #step2, #step3 {<br />    display: none;<br />}<br /></pre>
<p>There are better ways to do this I know but essentially this problem was an overly zealous style definition..</p>
]]></description>
        	        	<pubDate>Tue, 09 Feb 2010 23:09:49 +0200</pubDate>
        </item>
        <item>
        	<title>xgote on Grid inside a tab / hidden container</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-inside-a-tab-hidden-container#p14656</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-inside-a-tab-hidden-container#p14656</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to render a grid inside of a hidden div but nothing happens.&#160; I&#39;ve also tried calling the grid method after a click event, without sucess.&#160; Here is my code:</p>
<pre>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&#62;
&#60;html&#62;

&#60;head&#62;

    &#60;meta http-equiv="content-type" content="text/html; charset=utf-8"/&#62;
    &#60;meta name="description" content="description"/&#62;
    &#60;meta name="keywords" content="keywords"/&#62; 
    &#60;meta name="author" content="author"/&#62; 
    
    &#60;link rel="stylesheet" type="text/css" href="/jqgrid/css/ui.jqgrid.css" media="screen"/&#62;
    &#60;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/start/jquery-ui.css" type="text/css" /&#62;
    
    &#60;title&#62;Inventory&#60;/title&#62;

    &#60;script src="http://www.google.com/jsapi"&#62;&#60;/script&#62;
    &#60;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"&#62;&#60;/script&#62;
    &#60;script src="/jqgrid/src/grid.loader.js" type="text/javascript"&#62;&#60;/script&#62;
    &#60;style&#62;
    .selected {
        border: 1px dotted #000000;
    }
    .tabs div {
        display: none;
    }
    &#60;/style&#62;
    &#60;script type="text/javascript"&#62;
        google.load("jqueryui", "1.7.2");
        google.load("jqueryui", "1.5.2");
        
        
        $(document).ready(function() {
            //.ui = true;
            $(function() {
                    $("#new-content-button").click(function() {
                            $("#dialog").dialog({
                                                    height: 285,
                                                    width: 585,
                                                    modal: true
                            });
                    });
            });
            
            var tabContainers = $(&#39;div.tabs &#62; div&#39;);
            
            $(&#39;div.tabs ul.tabNavigation a&#39;).click(function () {
                tabContainers.hide().filter(this.hash).show();
                
                $(&#39;div.tabs ul.tabNavigation a&#39;).removeClass(&#39;selected&#39;);
                $(this).addClass(&#39;selected&#39;);
                
                return false;
            }).filter(&#39;:first&#39;).click();
            
            jQuery("#list4").jqGrid({ 
                    datatype:   "local", 
                    height:     250, 
                    colNames:   [&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], 
                    colModel:   [ {name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"}, 
                                  {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"}, 
                                  {name:&#39;name&#39;,index:&#39;name&#39;, width:100}, 
                                  {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"}, 
                                  {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"}, 
                                  {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"}, 
                                  {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false} ], 
                    multiselect: true, 
                    caption: "Manipulating Array Data" 
            }); 
            
            var mydata = [ {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, 
                           {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, 
                           {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, 
                           {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, 
                           {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, 
                           {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, 
                           {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, 
                           {id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, 
                           {id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"} ]; 
                           
            for(var i=0;i&#60;=mydata.length;i++) {
                jQuery("#list4").jqGrid(&#39;addRowData&#39;,i+1,mydata[i]); 
            }
            
        });
    &#60;/script&#62;


&#60;/head&#62;

&#60;body&#62;

&#60;div class="container"&#62;

	&#60;div class="main"&#62;

		&#60;div class="header"&#62;
		
			&#60;div class="title"&#62;
				&#60;h1&#62;Grid in Tabs&#60;/h1&#62;
			&#60;/div&#62;

		&#60;/div&#62;

        
        &#60;div id="dialog" title="A Dialog" style="display: none;"&#62;
            This is a dialog!
        &#60;/div&#62;
        
        &#60;div class="tabs"&#62;
            &#60;!-- tabs --&#62;
            &#60;ul class="tabNavigation"&#62;
                &#60;li&#62;&#60;a href="#step1" id="step1-tab"&#62;Step - 1&#60;/a&#62;&#60;/li&#62;
                &#60;li&#62;&#60;a href="#step2" id="step2-tab"&#62;Step - 2&#60;/a&#62;&#60;/li&#62;
                &#60;li&#62;&#60;a href="#step3" id="step3-tab"&#62;Step - 3&#60;/a&#62;&#60;/li&#62;
            &#60;/ul&#62;
        
            &#60;!-- tab containers --&#62;
            &#60;div id="step1"&#62;
                &#60;p&#62;Paste your names here, separated by commas&#60;/p&#62;
                &#60;textarea cols="75" rows="10"&#62;&#60;/textarea&#62;
                &#60;br /&#62;
                &#60;input type="button" value="Step 2"&#62;
            &#60;/div&#62;
            &#60;div id="step2"&#62;
                 &#60;table id="list4"&#62;&#60;/table&#62; list4
            &#60;/div&#62;
            &#60;div id="step3"&#62;
                &#60;p&#62;Ut enim ad minim veniam&#60;/p&#62;
            &#60;/div&#62;
        &#60;/div&#62;
        

	&#60;/div&#62;

	&#60;div class="footer"&#62;&#60;/div&#62;

&#60;/div&#62;

&#60;/body&#62;

&#60;/html&#62;

</pre>
<p>This seems to work when I pull the table the grid is attempting to render, out of any hidden divs.&#160; Any help appreciated.</p>
]]></description>
        	        	<pubDate>Tue, 09 Feb 2010 23:00:49 +0200</pubDate>
        </item>
</channel>
</rss>