<?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: Need to freeze column when using jqGrid tableToGrid function</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/need-to-freeze-column-when-using-jqgrid-tabletogrid-function</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/need-to-freeze-column-when-using-jqgrid-tabletogrid-function/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cat54mom on Need to freeze column when using jqGrid tableToGrid function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-to-freeze-column-when-using-jqgrid-tabletogrid-function#p28313</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-to-freeze-column-when-using-jqgrid-tabletogrid-function#p28313</guid>
        	        	<description><![CDATA[<p>I have a c# asp.net application that renders a wide table (many columns) using a Listview control.&#160; I am using Release 4.4.4 of jaGrid.&#160; I want to use jqGrid&#39;s "tableToGrid" function only to freeze the headers, handle vertical and horizontal scrolling, and freeze the 1st column of the&#160; resulting table&#160;(although I intend to become more familiar with jqGrid&#39;s extensive functionality later). The frozen headers and scrolling are working, but I am having a problem with freezing the&#160;1st column.&#160;</p>
<p>I am not expicitly creating colNames and colModel for the table columns, since this is handled by the tableToGrid function.&#160; Using an example for changing a frozen column I&#160;came up with this javascript:&#160;</p>
<blockquote>
<p>&#160;&#160;&#160; tableToGrid($(&#39;#parcelTable&#39;),<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160; sortable: false,<br />&#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160;&#160;&#160; width: 952,<br />&#160;&#160;&#160;&#160; height: 300<br />&#160;&#160;&#160; })<br />&#160;&#160;&#160; .jqGrid(&#39;destroyFrozenColumns&#39;)<br />&#160;&#160;&#160; .jqGrid("setColProp", "rowEdit", { frozen: true })<br />&#160;&#160;&#160; .jqGrid("setFrozenColumns")<br />&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);&#160;&#160; <br />&#160; <br />When I tried the above, I got the message <strong>"Microsoft JScript runtime error: undefined&#39; is null or not an object" </strong></p>
<p><strong><br /></strong>I also tried not chaining the code for the frozen columns statements,&#160;&#160;using&#160;&#160;</p>
<p>&#160;&#160;&#160;$(&#39;#parcelTable&#39;).jqGrid(&#39;destroyFrozenColumns&#39;)<br />&#160;&#160;&#160;$(&#39;#parcelTable&#39;).jqGrid("setColProp", "rowEdit", { frozen: true })<br />&#160;&#160;&#160;$(&#39;#parcelTable&#39;).jqGrid("setFrozenColumns")<br />&#160;&#160;&#160;$(&#39;#parcelTable&#39;).trigger(&#39;reloadGrid&#39;);&#160;&#160;&#160;&#160; </p>
<p>and got the same message.&#160;</p>
</blockquote>
<p>I&#160;realize I have probably made some dumb syntax or usage error, but I would also like to know whether I am on the right track, or if this is the best way to do this.</p>
</p>
<p>Thanks in advance for any help!</p>
]]></description>
        	        	<pubDate>Thu, 21 Feb 2013 23:14:14 +0200</pubDate>
        </item>
</channel>
</rss>