<?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: Help with hidecol() method</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method</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/help-with-hidecol-method/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4799</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4799</guid>
        	        	<description><![CDATA[<p><strong>$(&#8221;#"+subgrid_table_id).hideCol(</strong>&#8220;x_current_state<strong>&#8221;);</strong></p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 09:42:28 +0200</pubDate>
        </item>
        <item>
        	<title>Jim P on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4794</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4794</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>There is a field in the sub grid row that determines what column to hide.&#160; If I use loadComplete,&#160; how would I know the value of that field in the sub grid&#160;row?</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 09:16:00 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4776</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4776</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This should work, but I sugest to cal this not in afterInsertRow, since this is executed every time you add row. If possible please use gridComplete event for this purpose.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 02:43:06 +0200</pubDate>
        </item>
        <item>
        	<title>Jim P on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4719</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4719</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>That still doesn&#39;t work.&#160; In fact, I tried that before I posted.</p>
<p>Could this not be working because this is a grid as a Subgrid?&#160; I read in the documentation that there are limits on a subgrid, but it didn&#39;t think they applied to a grid as a Subgrid.</p>
<p>Or, should I use a different event to tigger the hiding of the column?</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Wed, 18 Feb 2009 08:04:15 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4713</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4713</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do you see in the colModel a col with a name &#39;Status&#39;. You mix col names with col model. In your case this should be:</p>
<p><strong>$(&#8221;#subgrid_table_id&#8221;).hideCol(</strong>"x_current_state<strong>&#8221;);</strong></p>
<p>to x_current_state correspond Status in colNames.</p>
<p>Please read carefully the docs before posting some issue - here is what should be read</p>
<p>..</p>
<p>"Hides a column with a given colname. If the colname is a string, only the specified column is hidden. If the colname is array of type ["name1","name2"] then the columns with names &#39;name1&#39; and &#39;name2&#39; will be hidden at the same time. The names in colname must be valid names from the colModel. The width of the grid is changed according to the following rules: if the grid currently has no horizontal scroll bar, the width of the grid is decreased by the width of the hidden column(s). If a scrollbar is visible, the width is adjusted which may or may not change the width of the grid."</p>
]]></description>
        	        	<pubDate>Wed, 18 Feb 2009 04:26:36 +0200</pubDate>
        </item>
        <item>
        	<title>Jim P on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4700</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4700</guid>
        	        	<description><![CDATA[<p>this still doesn&#39;t work?&#160; <strong>See Bold below</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var subgrid_table_id;<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; var rowdata = jQuery("#list").getRowData(row_id);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; subgrid_table_id = subgrid_id+"_t";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_id).html("&#60;table id=&#39;"+subgrid_table_id+"&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;<a href="&#34;Users.cfc?method=GetSubCases&#38;q=2&#38;id=&#34;+row_id+&#34;&#38;x_object_id=&#34;+rowdata.x_object_id" target="_blank">url:"Users.cfc?method=GetSubCases&#38;q=2&#38;id="+row_id+"&#38;x_object_id="+rowdata.x_object_id</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;ID&#39;,&#39;Create D/T&#39;,&#39;Category&#39;,&#39;Priority&#39;,&#39;Status&#39;,&#39;Part Number&#39;,&#39;Part Desc&#39;,&#39;Description&#39;,&#39;&#39;],<br />&#160;&#160;&#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; {name:"x_object_id",index:"x_object_id",key:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_creation_dt",index:"x_creation_dt", align:"left",datefmt:"Y-m-d", sorttype:"date"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_category",index:"x_category",align:"left"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_priority",index:"x_priority",align:"left"},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_current_state",index:"x_current_state",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_part_number",index:"x_part_number",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_part_description",index:"x_part_description",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_title",index:"x_title",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:&#39;mytyp&#39;, hidden:true}<br />&#160;&#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; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; width:675,<br />&#160;&#160;&#160;&#160;&#160;&#160; afterInsertRow : function(rowid,rowdata,rowelem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rowdata.mytyp == "PR")<br />&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;<strong> $("#subgrid_table_id").hideCol("Status");<br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;<br />&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; //imgpath: &#39;themes/green/images&#39;, //Image path for prev/next etc images,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;num&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160; //The JSON reader. This defines what the JSON data returned from the CFC should look like<br />&#160;&#160;&#160;&#160;&#160;jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;root: "ROWS",<br />&#160;&#160;&#160;&#160;&#160;page: "PAGE",<br />&#160;&#160;&#160;&#160;&#160;total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;records:"RECORDS",<br />&#160;&#160;&#160;&#160;&#160;cell: "",<br />&#160;&#160;&#160;&#160;&#160;id: "0",<br />&#160;&#160;&#160;&#160;&#160;subgrid: {root: "ROWS", repeatitems: true, cell: "",id:"0"}<br />&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc"<br />&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;})<br />&#160;&#160;&#160;&#160;&#160;&#160; },</p></p>
]]></description>
        	        	<pubDate>Tue, 17 Feb 2009 15:29:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4688</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4688</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Java Script is case sensitive use</p>
<p><strong>$(&#8221;#subgrid_table_id&#8221;).hideCol(3); instead</strong></p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 17 Feb 2009 10:36:42 +0200</pubDate>
        </item>
        <item>
        	<title>Jim P on Help with hidecol() method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4685</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-hidecol-method#p4685</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I&#39;m trying to use the hidecol() method and it&#39;s not working.&#160; Could you tell me what I&#39;m doing wrong?&#160; See Bold code below</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var subgrid_table_id;<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; var rowdata = jQuery("#list").getRowData(row_id);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; subgrid_table_id = subgrid_id+"_t";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_id).html("&#60;table id=&#39;"+subgrid_table_id+"&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;<a href="&#34;Users.cfc?method=GetSubCases&#38;q=2&#38;id=&#34;+row_id+&#34;&#38;x_object_id=&#34;+rowdata.x_object_id" target="_blank">url:"Users.cfc?method=GetSubCases&#38;q=2&#38;id="+row_id+"&#38;x_object_id="+rowdata.x_object_id</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;ID&#39;,&#39;Create D/T&#39;,&#39;Category&#39;,&#39;Priority&#39;,&#39;Status&#39;,&#39;Part Number&#39;,&#39;Part Desc&#39;,&#39;Description&#39;,&#39;&#39;],<br />&#160;&#160;&#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; {name:"x_object_id",index:"x_object_id",key:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_creation_dt",index:"x_creation_dt", align:"left",datefmt:"Y-m-d", sorttype:"date"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_category",index:"x_category",align:"left"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_priority",index:"x_priority",align:"left"},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"x_current_state",index:"x_current_state",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_part_number",index:"x_part_number",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_part_description",index:"x_part_description",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:"x_title",index:"x_title",align:"left",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;{name:&#39;mytyp&#39;, hidden:true}<br />&#160;&#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; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; width:675,<br />&#160;&#160;&#160;&#160;&#160;&#160; afterInsertRow : function(rowid,rowdata,rowelem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rowdata.mytyp == "PR")<br />&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong> $("#subgrid_table_id").hidecol(3);<br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;<br />&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; //imgpath: &#39;themes/green/images&#39;, //Image path for prev/next etc images,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;num&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160; //The JSON reader. This defines what the JSON data returned from the CFC should look like<br />&#160;&#160;&#160;&#160;&#160;jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;root: "ROWS",<br />&#160;&#160;&#160;&#160;&#160;page: "PAGE",<br />&#160;&#160;&#160;&#160;&#160;total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;records:"RECORDS",<br />&#160;&#160;&#160;&#160;&#160;cell: "",<br />&#160;&#160;&#160;&#160;&#160;id: "0",<br />&#160;&#160;&#160;&#160;&#160;subgrid: {root: "ROWS", repeatitems: true, cell: "",id:"0"}<br />&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc"<br />&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;})<br />&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;</p>
<p>TIA, Jim</p>
]]></description>
        	        	<pubDate>Tue, 17 Feb 2009 10:13:25 +0200</pubDate>
        </item>
</channel>
</rss>