<?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: setFrozenColumns</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/setfrozencolumns</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/setfrozencolumns/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>slykiwi on setFrozenColumns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setfrozencolumns#p25643</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setfrozencolumns#p25643</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Am am new to this and jquery so please forgive me if this is a basic question!&#160; I am trying to use the new "setFrozenColumns" method in my grid.&#160; I have downloaded ans installed version 4.3 and cant figure out how it works.&#160; I use ajax to load data into my grid, including the column model etc.&#160; Here is my code (all works perfectly except the freeze):</p>
</p>
<p>&#60;script type="text/javascript"&#62;<br />$(document).ready(function () {</p>
<p>&#160;&#160;&#160; $.ajax({<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: "GET",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "xxxxxxxxxx",<br />&#160;&#160; &#160;&#160;&#160; &#160;dataType: "json",</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(result){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var colD = result.pfcTills,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colM = result.colModelList;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;!--- BEGIN: Build Grid ---&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#dataGrid").jqGrid({<br />&#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;datatype: &#39;local&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: colD.rootVar,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridview: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel :colM,<br />&#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;width: 1000,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;shrinkToFit: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:"PFC TILLS MONTHLY SUMMARY",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortable: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 100<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;!--- END: Build Grid ---&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; error: function(x, e){ alert(x.readyState + " "+ x.status +" "+ e.msg); }</p>
<p>&#160;&#160;&#160; });</p>
<p>});<br />&#60;/script&#62;</p>
</p>
<p>I have also &#60;cfset tmp2.frozen = true&#62; in my colModelList.&#160; Where in my code should this go:</p>
</p>
<p>jQuery("#dataGrid").jqGrid(&#39;setFrozenColumns&#39;);</p>
</p>
<p>And while we are at it, how do i colour a selected row?</p>
</p>
<p>Any help greatly appreciated.&#160; I need to sort this to show the boss man before we purchase it.</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Thu, 12 Jan 2012 06:32:38 +0200</pubDate>
        </item>
</channel>
</rss>