<?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: Hide a particular column</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column</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/hide-a-particular-column/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Hide a particular column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23685</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23685</guid>
        	        	<description><![CDATA[<p>Hidding is <strong>not the same</strong> as removing. If you have for example data like {id:5,total:10,free:20,used:30,percentage:40} you will recive the row in the table like</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8192' value='Select Code' data-codeid='sfcode8192' /></p>
<div class='sfcode' id='sfcode8192'>&#60;tr <strong>id=&#34;5&#34;</strong>&#62;<strong>&#60;td style=&#34;display:none&#34;&#62;5&#60;/td&#62;</strong>&#60;td&#62;10&#60;/td&#62;&#60;td&#62;20&#60;/td&#62;&#60;td&#62;30&#60;/td&#62;&#60;td&#62;40&#60;/td&#62;&#60;/tr&#62;</div>
<p>If you just remove the <strong>id</strong> column from the <strong>colModel</strong> you will have</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6544' value='Select Code' data-codeid='sfcode6544' /></p>
<div class='sfcode' id='sfcode6544'>&#60;tr <strong>id=&#34;5&#34;</strong>&#62;&#60;td&#62;10&#60;/td&#62;&#60;td&#62;20&#60;/td&#62;&#60;td&#62;30&#60;/td&#62;&#60;td&#62;40&#60;/td&#62;&#60;/tr&#62;</div>
<p>So the data which will be produced on the page will smaller and you will not have the duplicates of the information. As the rowid will be used the id of the &#60;tr&#62; element and the contain of the hidden <strong>id</strong> column <strong>will never used</strong>.</p>
<p>So I recommend you better just remove the id column from the <strong>colModel</strong>. (See <a href="http://stackoverflow.com/questions/6395608/how-to-hide-a-id-column-from-displaying-in-jqgrid-table/6395713#6395713" target="_blank">my answer</a> on the same your question on the stackoverflow.com)</p>
<p>Best regards<br />Oleg</p></p>
]]></description>
        	        	<pubDate>Sun, 19 Jun 2011 13:23:19 +0300</pubDate>
        </item>
        <item>
        	<title>Bugzee on Hide a particular column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23683</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23683</guid>
        	        	<description><![CDATA[<p>There&#39;s "hidden" in the colmodel options. Set it to true and see... I haven&#39;t done it on local data though...</p>
</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colmodel_options" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....el_options</a></p>
]]></description>
        	        	<pubDate>Sun, 19 Jun 2011 12:58:34 +0300</pubDate>
        </item>
        <item>
        	<title>abhisheksimion on Hide a particular column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23680</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hide-a-particular-column#p23680</guid>
        	        	<description><![CDATA[<p>In order to select &#160;current row, i will need an id but i dont want it to be displayed in my table, how to hide it, Here is my full code</p>
</p>
<p>var i=0;<br />var filesystem=[];<br />$(xml).find(&#39;file&#39;).each(function(){&#160;<br />var row={};<br />row.id=i++;<br />row.total=$(this).attr(&#39;total&#39;);<br />row.free=$(this).attr(&#39;free&#39;);<br />row.used=$(this).attr(&#39;used&#39;);<br />row.percentage=$(this).attr(&#39;percentage&#39;);<br />filesystem.push(row);<br />});</p>
<p>$(&#39;#detailTable&#39;).empty();<br />$(&#39;&#60;div&#160;width="100%"&#62;&#39;)<br />.attr(&#39;id&#39;,&#39;diskUsageSpan&#39;)<br />.html(&#39;&#60;divclass="titleBlue"&#62;Configuration&#38;gt;System&#38;gt;Disk Usage&#60;/div&#62;&#39;+<br />&#39;&#60;table&#160;id="list1"&#160;width="100%"&#62;&#60;/table&#62;&#39;+<br />&#39;&#60;div&#160;id="gridpager"&#62;&#60;/div&#62;&#39;+<br />&#39;&#60;/div&#62;&#39;)&#160; &#160; &#160; &#160;&#160;<br />.appendTo(&#39;#detailTable&#39;);&#160; &#160;&#160;</p>
<p>jQuery("#list1").jqGrid({<br />datatype: "clientSide",<br />height: 250,<br />colNames:[&#39;id&#39;,&#39;Total Space&#39;,&#39;Free Space&#39;, &#39;Used Space&#39;, &#39;Used Percentage&#39;],<br />colModel:[<br />{name:&#39;id&#39;,index:&#39;id&#39;, width:90, align:"right"},<br />{name:&#39;total&#39;,index:&#39;total&#39;, width:90, align:"right"},<br />{name:&#39;free&#39;,index:&#39;free&#39;, width:90, align:"right"},<br />{name:&#39;used&#39;,index:&#39;used&#39;, width:90, align:"right"},<br />{name:&#39;percentage&#39;,index:&#39;percentage&#39;, width:120, align:"right"}<br />],<br />pagination:true,<br />pager : &#39;#gridpager&#39;,<br />rowNum:10,<br />scrollOffset:0,<br />height: &#39;auto&#39;,<br />autowidth:true,<br />viewrecords: true,<br />gridview: true,<br />edit:false,<br />add:false,<br />del:false</p>
<p>});</p>
<p>for(var i=0;i&#60;filesystem.length;i++)<br />jQuery("#list1").jqGrid(&#39;addRowData&#39;,i+1,filesystem[i]);</p>
<p>jQuery("#list1").setGridParam({rowNum:10}).trigger("reloadGrid");</p>
]]></description>
        	        	<pubDate>Sat, 18 Jun 2011 14:03:29 +0300</pubDate>
        </item>
</channel>
</rss>