<?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: Freezing column in JQGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/freezing-column-in-jqgrid</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/freezing-column-in-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>gnanaxavier on Freezing column in JQGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/freezing-column-in-jqgrid#p27177</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/freezing-column-in-jqgrid#p27177</guid>
        	        	<description><![CDATA[<p>I have pasted my code below. Freezing the coloumn is not working. Kindly help me out in this issue. It is giving an "no such method" exception in the line " $("#sample").jqGrid(&#39;setFrozenColumns&#39;);</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7657' value='Select Code' data-codeid='sfcode7657' /></p>
<div class='sfcode' id='sfcode7657'>
<p>&#60;/html&#62;&#60;/body&#62;&#160; &#160; &#60;/form&#62;&#160; &#160; &#60;/table&#62;&#160; &#160; &#60;table id=&#34;sample&#34;&#62;&#160; &#160; &#60;form id=&#34;form1&#34; runat=&#34;server&#34;&#62;&#60;body&#62;&#60;/head&#62;<br />&#160; &#160; &#160; &#160;&#60;/script&#62;&#160; &#160; &#160; $(&#34;#sample&#34;).jqGrid(&#39;setFrozenColumns&#39;);&#160; &#160; &#160; });&#160; &#160; &#160; &#160; &#160; &#160; }&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; jQuery(&#34;#sample&#34;).jqGrid(&#39;addRowData&#39;, mydata2[i].id, mydata2[i]);<br />&#160; &#160; &#160; &#160; &#160; &#160; for (var i = 0; i &#60; mydata2.length; i++) {<br />&#160; &#160; &#160; &#160; ];&#160; &#160; &#160; &#160; { id: &#34;98765&#34;, name: &#34;Matrix Printer&#34;, note: &#34;note3&#34;, stock: &#34;No&#34;, dep: &#34;km&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; }&#160; &#160; &#160; &#160; { id: &#34;87654&#34;, name: &#34;Server&#34;, note: &#34;note2&#34;, stock: &#34;Yes&#34;, dep: &#34;bc&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;76543&#34;, name: &#34;Mobile Telephone&#34;, note: &#34;note&#34;, stock: &#34;Yes&#34;, dep: &#34;we&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;67890&#34;, name: &#34;Play Station&#34;, note: &#34;note3&#34;, stock: &#34;No&#34;, dep: &#34;gg&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;56789&#34;, name: &#34;Laser Printer&#34;, note: &#34;note2&#34;, stock: &#34;Yes&#34;, dep: &#34;km&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;45678&#34;, name: &#34;Speakers&#34;, note: &#34;note&#34;, stock: &#34;No&#34;, dep: &#34;gg&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;34567&#34;, name: &#34;LCD Monitor&#34;, note: &#34;note3&#34;, stock: &#34;Yes&#34;, dep: &#34;we&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;23456&#34;, name: &#34;Laptop&#34;, note: &#34;Long text &#34;, stock: &#34;Yes&#34;, dep: &#34;bc&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; { id: &#34;12345&#34;, name: &#34;Desktop Computer&#34;, note: &#34;note&#34;, stock: &#34;Yes&#34;, dep: &#34;km&#34;, Service: &#34;abc&#34;, Delivery: &#34;ccv&#34;, Result: &#34;bbc&#34;, Feedback: &#34;yes&#34;, Total: &#34;100&#34;, Data: &#34;rre&#34;, Views: &#34;dgx&#34;, Rows: &#34;5&#34;, Columns: &#34;8&#34;, Table: &#34;13&#34; },&#160; &#160; &#160; &#160; &#160; &#160; var mydata2 = [&#160; &#160; &#160; &#160; &#160; &#160; });&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; caption: &#34;sample table&#34;</p>
<p>&#160; &#160; &#160; &#160;],&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Table&#39;, index: &#39;Table&#39;, width: 90, sorttype: &#34;int&#34;, editable: true }&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Columns&#39;, index: &#39;Columns&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Rows&#39;, index: &#39;Rows&#39;, width: 90, sorttype: &#34;int&#34;, editable: true},&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Views&#39;, index: &#39;Views&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Data&#39;, index: &#39;Data&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Total&#39;, index: &#39;Total&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Feedback&#39;, index: &#39;Feedback&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Result&#39;, index: &#39;Result&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Delivery&#39;, index: &#39;Delivery&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Service&#39;, index: &#39;Service&#39;, width: 90, sorttype: &#34;int&#34;, editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;note&#39;, index: &#39;note&#39;, width: 200, sortable: false, editable: true, edittype: &#34;textarea&#34;, editoptions: { rows: &#34;2&#34;, cols: &#34;10&#34;} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;dep&#39;, index: &#39;dep&#39;, width: 90, editable: true, edittype: &#34;select&#34;, editoptions: { value: &#34;a:km;b:bc;c:we;i:gg&#34;} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;stock&#39;, index: &#39;stock&#39;, width: 60, editable: true, edittype: &#34;select&#34;, editoptions: { value: &#34;aw:Yes;bk:No&#34;} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;name&#39;, index: &#39;name&#39;, width: 150, editable: true, frozen:true, editoptions: { size: &#34;20&#34;, maxlength: &#34;30&#34;} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;id&#39;, index: &#39;id&#39;, width: 90, sorttype: &#34;int&#34;, editable: true, frozen: true },&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; colModel: [&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; colNames: [&#39;ID Number&#39;, &#39;Name&#39;, &#39;Stock&#39;, &#39;department&#39;, &#39;Notes&#39;, &#39;Service&#39;, &#39;Delivery&#39;, &#39;Result&#39;, &#39;Feedback&#39;, &#39;Total&#39;, &#39;Data&#39;, &#39;Views&#39;, &#39;Rows&#39;, &#39;Columns&#39;, &#39;Table&#39;],&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; shrinkToFit: false,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; scroll: false,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; height: 250,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; datatype: &#34;local&#34;,&#160; &#160; &#160; &#160; &#160; &#160; $(&#34;#sample&#34;).jqGrid({&#160; &#160; &#160; &#160; &#160; &#160; var lastsel2;<br />&#160; &#160; &#160; &#160; $(document).ready(function() {&#160; &#160; &#60;script type=&#34;text/javascript&#34;&#62;<br />&#160; &#160; &#60;script src=&#34;Scripts/Lib/jquery.jqGrid.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160; &#160; &#60;script src=&#34;Scripts/Lib/jquery-1.7.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160; &#160; &#60;link href=&#34;Styles/ui.jqgrid.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34; /&#62;&#160; &#160; &#60;link href=&#34;Styles/jquery-ui-1.8.16.custom.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34; /&#62;&#160; &#160; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;&#160; &#160; &#60;title&#62;Untitled Page&#60;/title&#62;&#60;head id=&#34;Head1&#34; runat=&#34;server&#34;&#62;&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#34;&#62;&#038;lt" rel="nofollow" target="_blank">http://www.w3.org/1999/xhtml&#34;&#62;&#038;lt</a>;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#038;gt" rel="nofollow" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#038;gt</a>;<br />&#60;%@ Page Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;Freeze.aspx.cs&#34; Inherits=&#34;Freeze&#34; %&#62;</p>
</div>
]]></description>
        	        	<pubDate>Wed, 22 Aug 2012 12:57:18 +0300</pubDate>
        </item>
</channel>
</rss>