<?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 not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/freezing-column-not-working</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/bugs/freezing-column-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>gnanaxavier on Freezing column not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/freezing-column-not-working#p27187</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/freezing-column-not-working#p27187</guid>
        	        	<description><![CDATA[<p>I am pasting my code below. Kindly help me out in freezing the column</p>
</p>
<p>&#60;/html&#62;&#60;/body&#62;&#160; &#160; &#60;/form&#62;&#160; &#160; &#160;&#160;&#160; &#160; &#60;/table&#62;&#160; &#160; &#60;table id="sample"&#62;&#160; &#160; &#60;form id="form1" runat="server"&#62;&#60;body&#62;&#60;/head&#62;<br />&#160; &#160; &#160; &#160;&#60;/script&#62;&#160; &#160; &#160; &#160; $("#sample").trigger(&#39;reloadGrid&#39;, [{ current: true}]);&#160; &#160; &#160; &#160; $("#sample").jqGrid(&#39;setFrozenColumns&#39;);// &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;.trigger("reloadGrid",[{current:true}]);// &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;.jqGrid("setFrozenColumns")&#160;// &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;.jqGrid("setColProp","id",{frozen:true})&#160;// &#160; &#160; &#160;$("#sample").jqGrid("destroyFrozenColumns")&#160;&#160; &#160; &#160; &#160; });&#160; &#160; &#160; &#160; &#160; &#160; }&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; jQuery("#sample").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: "98765", name: "Matrix Printer", note: "note3", stock: "No", dep: "km", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" }&#160; &#160; &#160; &#160; { id: "87654", name: "Server", note: "note2", stock: "Yes", dep: "bc", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "76543", name: "Mobile Telephone", note: "note", stock: "Yes", dep: "we", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "67890", name: "Play Station", note: "note3", stock: "No", dep: "gg", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "56789", name: "Laser Printer", note: "note2", stock: "Yes", dep: "km", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "45678", name: "Speakers", note: "note", stock: "No", dep: "gg", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "34567", name: "LCD Monitor", note: "note3", stock: "Yes", dep: "we", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "23456", name: "Laptop", note: "Long text ", stock: "Yes", dep: "bc", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; { id: "12345", name: "Desktop Computer", note: "note", stock: "Yes", dep: "km", Service: "abc", Delivery: "ccv", Result: "bbc", Feedback: "yes", Total: "100", Data: "rre", Views: "dgx", Rows: "5", Columns: "8", Table: "13" },&#160; &#160; &#160; &#160; &#160; &#160; var mydata2 = [&#160; &#160; &#160; &#160; &#160; &#160; });&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; caption: "sample table"</p>
<p>&#160; &#160; &#160; &#160;],&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Table&#39;, index: &#39;Table&#39;, width: 90, sorttype: "int", editable: true }&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Columns&#39;, index: &#39;Columns&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Rows&#39;, index: &#39;Rows&#39;, width: 90, sorttype: "int", editable: true},&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Views&#39;, index: &#39;Views&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Data&#39;, index: &#39;Data&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Total&#39;, index: &#39;Total&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Feedback&#39;, index: &#39;Feedback&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Result&#39;, index: &#39;Result&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Delivery&#39;, index: &#39;Delivery&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Service&#39;, index: &#39;Service&#39;, width: 90, sorttype: "int", editable: true },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;note&#39;, index: &#39;note&#39;, width: 200, sortable: false, editable: true, edittype: "textarea", editoptions: { rows: "2", cols: "10"} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;dep&#39;, index: &#39;dep&#39;, width: 90, editable: true,frozen: true, edittype: "select", editoptions: { value: "a:km;b:bc;c:we;i:gg"} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;stock&#39;, index: &#39;stock&#39;, width: 60, editable: true,frozen: true, edittype: "select", editoptions: { value: "aw:Yes;bk:No"} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;name&#39;, index: &#39;name&#39;, width: 150, editable: true,frozen: true, editoptions: { size: "20", maxlength: "30"} },&#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;id&#39;, index: &#39;id&#39;, width: 90, sorttype: "int", 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: "local",&#160; &#160; &#160; &#160; &#160; &#160; $("#sample").jqGrid({&#160; &#160; &#160; &#160; &#160; &#160; var lastsel2;<br />&#160; &#160; &#160; &#160; $(document).ready(function() {&#160; &#160; &#60;script type="text/javascript"&#62;&#160; &#160;&#160;&#160; &#160; &#60;script src="Scripts/Lib/grid.custom.js" type="text/javascript"&#62;&#60;/script&#62;&#160; &#160;&#160;&#160; &#160; &#60;script src="Scripts/Lib/jquery.jqGrid.src.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#160; &#60;script src="Scripts/Lib/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#160; &#60;script src="Scripts/Lib/jquery-1.7.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#160; &#60;link href="Styles/ui.jqgrid.css" rel="stylesheet" type="text/css" /&#62;&#160; &#160; &#60;link href="Styles/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" /&#62;&#160; &#160; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;&#160; &#160; &#60;title&#62;Untitled Page&#60;/title&#62;&#60;head id="Head1" runat="server"&#62;&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Freeze.aspx.cs" Inherits="Freeze" %&#62;</p>
]]></description>
        	        	<pubDate>Thu, 23 Aug 2012 09:14:43 +0300</pubDate>
        </item>
</channel>
</rss>