<?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: 2 line header and summary in footer</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer</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/2-line-header-and-summary-in-footer/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Sander on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4082</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4082</guid>
        	        	<description><![CDATA[<p>I used a workaround to get an extra header.</p>
<p>I wanted my table to show if a column has an index or not, in a 2nd table header.</p>
<p>I just made a dummy table like this:</p>
<p><span style="color: #3366ff;">&#60;table id="dummy_table"&#62;<br />&#160;&#160;&#160; &#60;tr id="index_rows"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;Index&#60;th&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;&#60;th&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;&#60;th&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;Index&#60;th&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;th&#62;&#60;th&#62;<br />&#160;&#160;&#160; &#60;tr&#62;<br />&#60;/table&#62;</span></p>
<p>with the same amount of columns as my jqGrid table.</p>
<p>Then I added this function to my jqGrid:</p>
<p><span style="color: #3366ff;">gridComplete: function(){<br />&#160;&#160;&#160; var lui_jqGridTable = document.getElementById( "lui_jqGridTable" );&#160;&#160;&#160; <br />&#160;&#160;&#160; var destination &#160;&#160;&#160; = lui_jqGridTable.nextSibling.nextSibling.firstChild.nextSibling.firstChild;&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; var index&#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; = document.getElementById( "index_rows" );<br />&#160;&#160;&#160; destination.appendChild(index);<br />},</span></p>
<p>The loading div, in my case called lui_jqGridTable was the closest element in the jqGrid to the &#60;thead&#62; tag which has an id.<br />With nextSibliging and firstChild I then walk down the DOM tree to the &#60;thead&#62; and put this location in var destination<br />Then I append my index rows to that location.</p>
<p>This is the part of the DOM tree I used:</p>
<p><span style="color: #3366ff;">&#60;div id="lui_jqGridTable" class="loadingui"/&#62;<br />&#60;div class="GridHeader" style="width: 1085px; text-align: center; display: block;"&#62;<br />&#60;/div&#62;<br />&#60;div style="overflow: hidden; width: 1085px;"&#62;<br />&#60;div class="loading" style="display: none;"&#62;Loading...&#60;/div&#62;<br />&#60;table class="scroll" cellspacing="0" cellpadding="0" border="0" style="width: 1085px;"&#62;<br />&#60;thead&#62;</span></p>
<p>The firstChild of the &#60;thead&#62; tag is the &#60;tr&#62; with the jqgrid headers.</p>
<p>The index is appended as a new child &#60;tr&#62; after that.</p>
<p>Thanks to Tony for the best grid editor currently available, keep up the awesome job!</p>
]]></description>
        	        	<pubDate>Thu, 22 Jan 2009 03:24:00 +0200</pubDate>
        </item>
        <item>
        	<title>clintp on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4065</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4065</guid>
        	        	<description><![CDATA[<blockquote>
<p>verso said:</p>
<p>That would be a nice feature to have - I&#39;m sure&#160;the need&#160;comes up very frequently.</p>
<p>That said - it only takes a few extra lines of code to place a table with the appropriate classes directly underneath the main grid table, and do whatever updating you need manually from the appropriate grid event.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8254' value='Select Code' data-codeid='sfcode8254' /></p>
<div class='sfcode' id='sfcode8254'>
<p>&#60;table id=&#8221;master&#8221; class=&#8221;scroll&#8221;&#62;&#60;/table&#62;<br />&#60;table class=&#8221;scroll&#8221; style=&#8221;width:100%;margin-top:2px;&#8221; id=&#8221;summary&#8221;&#62;<br />&#160;&#60;tbody&#62;&#60;tr class=&#8221;jqgrow&#8221;&#62;&#60;td style=&#8221;text-align:right;&#8221; id=&#8221;summary_data&#8221;&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/tbody&#62;<br />&#60;/table&#62;</p>
</div>
</blockquote>
<hr />
<p>Forgive my ignorance, but I don&#39;t see how this should work.&#160; Given a small sample:</p>
<p>&#60;html&#62;<br />&#60;head&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="js/jqGrid/themes/sand/grid.css" /&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript" src="js/jquery_ui/jquery-1.2.6.js"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script language="javascript" src="js/jqGrid/jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;script&#62;<br />$(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#Grid_13").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "local", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 100%, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 600,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: ["Group","ID","Name","Count"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [{"width":"6","sorttype":"text","name":"seqn157"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {"width":"6","sorttype":"text","name":"seqn158"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {"width":"29","sorttype":"text","name":"seqn159"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {"width":"9","sorttype":"float","name":"seqn160"}],<br />&#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; imgpath: "/js/jqGrid/themes/sand/images", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Adjustment Detail.",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id) { $("Grid_13").resetSelection(); }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#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; $(document).ready(function() {<br />$("#Grid_13").addRowData(1, {"seqn157":"CODE","seqn158":"4861","seqn159":"Bobs Big Boy","seqn160":"46"});<br />$("#Grid_13").addRowData(2, {"seqn157":"CODE","seqn158":"91021","seqn159":"Petes BBQ Shack","seqn160":"46"});<br />});<br />&#60;/script&#62;</p>
<p>&#60;table id=&#39;Grid_13&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#60;/body&#62;</p>
<p>How do I get a second table where the columns line up appropriately (and snugly) under the first&#39;s?</p>
]]></description>
        	        	<pubDate>Tue, 20 Jan 2009 10:57:45 +0200</pubDate>
        </item>
        <item>
        	<title>verso on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4054</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4054</guid>
        	        	<description><![CDATA[<p>That would be a nice feature to have - I&#39;m sure&#160;the need&#160;comes up very frequently.</p>
<p>That said - it only takes a few extra lines of code to place a table with the appropriate classes directly underneath the main grid table, and do whatever updating you need manually from the appropriate grid event.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5450' value='Select Code' data-codeid='sfcode5450' /></p>
<div class='sfcode' id='sfcode5450'>
<p>&#60;table id="master" class="scroll"&#62;&#60;/table&#62;<br />&#60;table class="scroll" style="width:100%;margin-top:2px;" id="summary"&#62;<br />&#160;&#60;tbody&#62;&#60;tr class="jqgrow"&#62;&#60;td style="text-align:right;" id="summary_data"&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/tbody&#62;<br />&#60;/table&#62;</p>
</div>
]]></description>
        	        	<pubDate>Tue, 20 Jan 2009 01:30:33 +0200</pubDate>
        </item>
        <item>
        	<title>clintp on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4038</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4038</guid>
        	        	<description><![CDATA[<blockquote>
<p>palobo said:</p>
<p>As far as the two line header goes, I cant really help you guys there but you can have a look at the docs and check Userdata for the footer.</p>
<p>Cheers,<br />P.</p>
</blockquote>
<hr />
<p>You&#39;re missing the point.&#160; I can insert user data for a footer just fine as a row.&#160; But what I can&#39;t do in jqgrid is style it differently or keep it from sorting when the column-headers are clicked.</p>
]]></description>
        	        	<pubDate>Mon, 19 Jan 2009 10:27:15 +0200</pubDate>
        </item>
        <item>
        	<title>palobo on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4016</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4016</guid>
        	        	<description><![CDATA[<p>As far as the two line header goes, I cant really help you guys there but you can have a look at the docs and check Userdata for the footer.</p>
<p>Cheers,<br />P.</p>
]]></description>
        	        	<pubDate>Sun, 18 Jan 2009 12:07:30 +0200</pubDate>
        </item>
        <item>
        	<title>clintp on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4006</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p4006</guid>
        	        	<description><![CDATA[<p>I&#39;m looking for the same feature.</p>
<p>Basically, a fixed-footer row that can be styled differently and that doesn&#39;t participate in sorting.&#160; This could be used to hold totals for columns.</p>
<p>Unlike the other poster, I&#39;m not expecting jqgrid to compute the totals (heavens no!) but it&#39;d be nice to have a place to put them.</p>
]]></description>
        	        	<pubDate>Fri, 16 Jan 2009 15:16:44 +0200</pubDate>
        </item>
        <item>
        	<title>noeder on 2 line header and summary in footer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p2610</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/2-line-header-and-summary-in-footer#p2610</guid>
        	        	<description><![CDATA[<p>I want to realize a 2 row header and a line with summary in the footer.</p>
<p>How can i do this, like example in the picture ?</p>
<p><a href="http://www.noeder.de/example_table.gif"><img src="http://www.noeder.de/example_table.gif" width="100"  style="border: 0; margin: 0px;" class="spUserImage" alt="Tabel with 2 line header" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p></p>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 08:51:44 +0300</pubDate>
        </item>
</channel>
</rss>