<?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: More than one Key column</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column-1</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/more-than-one-key-column-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>shibaji on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column-1#p2811</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column-1#p2811</guid>
        	        	<description><![CDATA[<p>If I set a key:true for a column then the post data name is hard coded id not the name of the column.</p>
</p>
<p>Moreover if I want to set more than one column as key column then How can I do that?This is required if the table has more than one primary key.</p>
<p>The script is written below</p>
</p>
<pre id="line10">&#60;<span class="start-tag">script</span><span class="attribute-name"> src</span>=<span class="attribute-value">"./../js/min/grid.base-min.js" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text/javascript"</span>&#62;&#60;/<span class="end-tag">script</span>&#62;&#60;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>&#62;<br /> jQuery(document).ready(function(){<br /> jQuery("#unitgrid").jqGrid({<br /> url: &#39;./interfaceengine.xmlcreator?interface_id=griddemo&#38;part_id=unitgrid&#39;,<br /> datatype: "xml",<br />colNames:[ &#39; ROLE ID &#39; ,&#39;ROLE TITLE&#39;], <br />colModel:[<br />{name:&#39;role_id&#39;,index:&#39;role_id&#39;,width:105,key:false, hidden:true, editable:true,edittype:"text",editoptions: {size:30}},<br />{name:&#39;title&#39;,index:&#39;title&#39;,width:255,key:true, hidden:false, editable:true,edittype:"text",editoptions: {size:30}},],<br /> rowNum:6,<br /> rowList:[2,6,12,15],<br /> pager: jQuery(&#39;#pagered&#39;),<br /> imgpath: &#39;./../themes/basic/images&#39;,<br /> sortname: &#39;id&#39;,<br /> viewrecords: true,<br /> sortorder:"desc",<br /> caption:"GRID",editurl:"./interfaceengine.DBGridEditServlet?interface_id=griddemo&#38;part_id=unitgrid"<br /> }); <br /> jQuery("#unitgrid").navGrid(&#39;#pagered&#39;,<br /> {}, //options<br /> {height:280,reloadAfterSubmit:false }, // edit options<br /> {height:280,reloadAfterSubmit:true}, // add options<br /> {reloadAfterSubmit:true}, // del options<br /> { } // search options<br /> );<br />});&#60;/<span class="end-tag">script</span>&#62;<br /></pre></p>
]]></description>
        	        	<pubDate>Thu, 30 Oct 2008 07:46:50 +0200</pubDate>
        </item>
</channel>
</rss>