<?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: How to disable sortable (dragging columns) on an existing grid?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid</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/how-to-disable-sortable-dragging-columns-on-an-existing-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to disable sortable (dragging columns) on an existing grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31121</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31121</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Thank you for posting this.</p>
<p>Â </p>
<p>Best Regards</p>
]]></description>
        	        	<pubDate>Sat, 13 Sep 2014 13:11:19 +0300</pubDate>
        </item>
        <item>
        	<title>ilagi on How to disable sortable (dragging columns) on an existing grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31034</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31034</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks, unfortunately that didn't work (it was complaining about sortable not being initialized), so I checked the DOM and modified and now it works:</p>
<p>Â </p>
<blockquote>
<p>
var thead = $("thead:first","#grid" ).get(0),<br />
thr = $("tr.jqg-second-row-header",thead);<br />
$(thr).sortable('destroy');</p>
</blockquote>
<p>Â </p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2014 17:04:26 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to disable sortable (dragging columns) on an existing grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31032</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31032</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Unfortunately there is no function which disable the sorable.</p>
<p>The way you try is not correct since the script (when this option is true) executes once and bind the needed events of the sortable.</p>
<p>The only possible solution is to use $(element).sortable('destroy').</p>
<p>Â </p>
<p>I'm not sure if this will work correct, but you can try this code:</p>
<p>(I get this code from the gridbase)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6806' value='Select Code' data-codeid='sfcode6806' /></p>
<div class='sfcode' id='sfcode6806'>
var thead = $("thead:first","#grid" ).get(0),</p>
<p>thr = $("tr:first",thead);</p>
<p>$(thr).sortable('destroy');</p>
</div>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2014 11:35:02 +0300</pubDate>
        </item>
        <item>
        	<title>ilagi on How to disable sortable (dragging columns) on an existing grid?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31022</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-disable-sortable-dragging-columns-on-an-existing-grid#p31022</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I'm trying to disable the dragging of columns on an existing grid by setting sortable to false, but it doesn't work.</p>
<p>jQuery('#mygrid').jqGrid('setGridParam', {sortable: false});</p>
<p>Â </p>
<p>Any idea how to disable the drag-and-dropping of columns of an existing grid?</p>
<p>Â </p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 28 Aug 2014 18:55:58 +0300</pubDate>
        </item>
</channel>
</rss>