<?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: Multiple grids want to stack on top of another...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another</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/multiple-grids-want-to-stack-on-top-of-another/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Multiple grids want to stack on top of another...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28328</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28328</guid>
        	        	<description><![CDATA[</p>
<p>Hello,</p>
</p>
<p>A very very simple test to this is:</p>
<p>Just do not use jqGrid, but add fome data manually in the tables and see the result.</p>
</p>
<p>Glad the problem is resolved</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 25 Feb 2013 12:15:17 +0200</pubDate>
        </item>
        <item>
        	<title>bergzilla on Multiple grids want to stack on top of another...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28323</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28323</guid>
        	        	<description><![CDATA[<p>I found the problem!</p>
</p>
<p>I needed to more formally close the &#60;table&#62; tags in my html.</p>
</p>
<p>&#60;div id="grid1Item"&#62;&#60;table id="grid1&#8243; /&#62;&#60;/div&#62;</p>
<p>needs to be</p>
<p>&#60;div id="grid1Item"&#62;&#60;table id="grid1&#8243;&#62;&#60;/table&#62;&#60;/div&#62;</p>
</p>
<p>I never knew that the table tag was so picky but that simple change fixed all kinds of other browser compatibility problems I was having as well as the stacking grid problem I was seeing!</p>
]]></description>
        	        	<pubDate>Sat, 23 Feb 2013 20:29:46 +0200</pubDate>
        </item>
        <item>
        	<title>bergzilla on Multiple grids want to stack on top of another...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28319</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiple-grids-want-to-stack-on-top-of-another#p28319</guid>
        	        	<description><![CDATA[<p>Hi All, I&#39;ve searched through the forums a bit to see if anyone had any examples of multiple grids on one page but I didn&#39;t find much info so here&#39;s my question. I&#39;ve made a simple example of 3 grids(no data) in 2 divs. The first grid spans most of the first div while the 2nd and 3rd are meant to horizontally split the 2nd div. However, once I call jqGrid, all of the grids have the same width and stack vertically on one another instead of following their containing divs.</p>
</p>
<p>I&#39;m new to jqGrid and not very good with CSS so I&#39;m sure I&#39;m doing something stupid on the CSS side but don&#39;t get why the each grid won&#39;t populate it&#39;s respective container. If I use absolute position on all of the divs, I can get the first grid to follow its div but the other grids just stack under it.</p>
</p>
<p>Here&#39;s the html/javascript/jquery:</p>
<p>&#60;!doctype html&#62;</p>
<p>&#60;html lang="en"&#62;</p>
<p>&#60;head&#62;</p>
<p>&#60;meta charset="UTF-8"&#62;</p>
<p>&#60;title&#62;multiple grids&#60;/title&#62;</p>
</p>
<p>&#60;link rel="stylesheet" href="jquery/simple.css" /&#62;</p>
<p>&#60;link rel="stylesheet" href="ui.jqgrid.css" /&#62;</p>
<p>&#60;/head&#62;</p>
</p>
<p>&#60;script type="text/javascript" src="jquery/jquery.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" scr="jquery/jquery-ui-1.10.0.custom/js/jquery-ui-1.10.0.custom.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery/jqGrid/js/i18n/grid.local-en.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="jquery/jqGrid/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>$(document).ready(function()</p>
<p>{</p>
<p>// initialize all of the datagrids</p>
<p>populateGrid1();</p>
<p>populateGrid2();</p>
<p>populateGrid3();</p>
<p>});</p>
</p>
<p>function populateGrid1()</p>
<p>{</p>
<p>var names = [&#39;grid1_col1&#39;, &#39;grid1_col2&#39;, &#39;grid1_col3&#39;, &#39;grid2_col4&#39;];</p>
<p>var model = [	{name:&#39;grid1_col1&#39;, index:&#39;col1&#39;},</p>
<p>{name:&#39;grid1_col2&#39;, index:&#39;col2&#39;},</p>
<p>{name:&#39;grid1_col3&#39;, index:&#39;col3&#39;},</p>
<p>{name:&#39;grid1_col4&#39;, index:&#39;col4&#39;} ];</p>
</p>
<p>$("#grid1").jqGrid({</p>
<p>colNames: names,</p>
<p>colModel: model,</p>
<p>rowNum: 100,</p>
<p>sortname: &#39;platform&#39;,</p>
<p>sortorder: &#39;desc&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption: &#39;Grid1&#39;,</p>
<p>autowidth: true,</p>
<p>height: 230</p>
<p>});</p>
<p>}</p>
</p>
<p>function populateGrid2()</p>
<p>{</p>
<p>var names = [&#39;grid2_col1&#39;, &#39;grid2_col2&#39;, &#39;grid2_col3&#39;, &#39;grid2_col4&#39;];</p>
<p>var model = [ {name:&#39;grid2_col1&#39;, index:&#39;col1&#39;},</p>
<p>{name:&#39;grid2_col2&#39;, index:&#39;col2&#39;},</p>
<p>{name:&#39;grid2_col3&#39;, index:&#39;col3&#39;},</p>
<p>{name:&#39;grid2_col4&#39;, index:&#39;col4&#39;} ];</p>
</p>
<p>$("#grid2").jqGrid({</p>
<p>colNames: names,</p>
<p>colModel: model,</p>
<p>rowNum: 100,</p>
<p>sortname: &#39;col1&#39;,</p>
<p>sortorder: &#39;desc&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption: &#39;Grid2&#39;,</p>
<p>autowidth: true,</p>
<p>height: 230</p>
<p>});</p>
<p>}</p>
</p>
<p>function populateGrid3()</p>
<p>{</p>
<p>var names = [&#39;grid3_col1&#39;, &#39;grid3_col2&#39;, &#39;grid3_col3&#39;, &#39;grid3_col4&#39;];</p>
<p>var model = [	{name:&#39;grid3_col1&#39;, index:&#39;col1&#39;},</p>
<p>{name:&#39;grid3_col2&#39;, index:&#39;col2&#39;},</p>
<p>{name:&#39;grid3_col3&#39;, index:&#39;col3&#39;},</p>
<p>{name:&#39;grid3_col4&#39;, index:&#39;col4&#39;} ];</p>
</p>
<p>$("#grid3").jqGrid({</p>
<p>colNames: names,</p>
<p>colModel: model,</p>
<p>rowNum: 100,</p>
<p>sortname: &#39;col1&#39;,</p>
<p>sortorder: &#39;desc&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption: &#39;Grid3&#39;,</p>
<p>autowidth: true,</p>
<p>height: 230</p>
<p>});</p>
<p>}</p>
<p>&#60;/script&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;h1 align="center"&#62;Multiple grid placement&#60;/h1&#62;&#60;br&#62;</p>
</p>
<p>&#60;div class="wrapper1"&#62;</p>
<p>&#60;div id="grid1Item"&#62;&#60;table id="grid1" /&#62;&#60;/div&#62;</p>
<p>&#60;/div&#62;</p>
</p>
<p>&#60;div class="wrapper2"&#62;</p>
<p>&#60;div id="grid2Item"&#62;&#60;table id="grid2" /&#62;&#60;/div&#62;</p>
<p>&#60;div id="grid3Item"&#62;&#60;table id="grid3" /&#62;&#60;/div&#62;</p>
<p>&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
</p>
<p>And the css:</p>
<p>html, body {</p>
<p>background: 	#FFFFFF;</p>
<p>padding:		0;</p>
<p>margin:		0;</p>
<p>width:		100%;</p>
<p>height:		100%;</p>
<p>}</p>
</p>
<p>.wrapper1 {</p>
<p>position:		relative;</p>
<p>top:			0px;</p>
<p>left:			0px;</p>
<p>right:		0px;</p>
<p>height: 		400px;</p>
<p>background: 	#555555;</p>
<p>border-style:	ridge;</p>
<p>border-width:	medium;</p>
<p>}</p>
</p>
<p>.wrapper2 {</p>
<p>position:		relative;</p>
<p>top:			420px;</p>
<p>left:			0px;</p>
<p>right:		0px;</p>
<p>height: 		400px;</p>
<p>background: 	#555555;</p>
<p>border-style:	ridge;</p>
<p>border-width:	medium;</p>
</p>
<p>}</p>
</p>
<p>#grid1Item {</p>
<p>position:		absolute;</p>
<p>margin:		1%;</p>
<p>top:			50px;</p>
<p>left:			0px;</p>
<p>width:		98%;</p>
<p>height:		275px;</p>
<p>background:	#FF0000;</p>
<p>}</p>
</p>
<p>#grid2Item {</p>
<p>position:		absolute;</p>
<p>margin:		1%;</p>
<p>top:			30px;</p>
<p>left:			0px;</p>
<p>width:		48%;</p>
<p>height:		320px;</p>
<p>background:	#00FF00;</p>
<p>}</p>
</p>
<p>#grid3Item {</p>
<p>position:		absolute;</p>
<p>margin:		1%;</p>
<p>top:			454px;</p>
<p>left:			50%;</p>
<p>width:		48%;</p>
<p>height:		320px;</p>
<p>background:	#0000FF;</p>
<p>}</p>
</p>
<p>Thanks for any advice you throw my way!</p>
<p>Bill.</p>
]]></description>
        	        	<pubDate>Fri, 22 Feb 2013 23:52:36 +0200</pubDate>
        </item>
</channel>
</rss>