<?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: Column reordering enhancement</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/column-reordering-enhancement</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/column-reordering-enhancement/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Mohamed on Column reordering enhancement</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-reordering-enhancement#p30310</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-reordering-enhancement#p30310</guid>
        	        	<description><![CDATA[<p>Hi there,&#160; I  would like to have the columns in my grid reorderable using drag and  drop. I understand that the sortable property is what needs to be set on  the grid is as follows:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3098' value='Select Code' data-codeid='sfcode3098' /></p>
<div class='sfcode' id='sfcode3098'>jQuery(&#34;#list&#34;).jqGrid({                 sortable: true,                 &#8230;  });</div>
</p>
<p>This works  perfectly fine, however in my grid I would like the first column  (sometimes multiple columns)&#160; to not be reorderable through drag and  drop and stay in its place and have the rest of the columns reorderable.  In other words I am looking for a way to pick which columns are  reorderable and which are not.</p>
<div>Another person who had a similar issue posted the  following question on stackoverflow ("http://stackoverflow.com/questions/2317199/jqgrid-with-column-reordering").&#160; I did try  some of the suggested solutions and nothing there actually worked for  me.</div>
<div></div>
<div>On my end I was able to manually turn off drag and drop for a particular column with the following javascript code:</div>
<div>$(&#39;#grid_id_column_id&#39;).on(&#39;mousedown&#39;, function(e){</div>
<div>&#160;&#160; return false;</div>
<div>});
</div>
<div>however  the issue then was: although I could not drag that column other columns  can be dragged to the location of that column, therefore making the  first column still reorderable through the moving of the other columns  around it to its location.</div>
<div>Any help or advice on how to resolve this issue would be much appreciated, thanks.</div>
<div>Mohamed</div>
]]></description>
        	        	<pubDate>Mon, 03 Mar 2014 18:20:33 +0200</pubDate>
        </item>
</channel>
</rss>