<?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: JQGrid 4.5.4 - Column Chooser Bug</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug</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/jqgrid-4-5-4-column-chooser-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on JQGrid 4.5.4 - Column Chooser Bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31116</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31116</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>The good news is that I will change the code in jqGrid.</p>
<p>The bad news is Â that it is unknown if this will be fixed in multi-select plugin.</p>
<p>Â </p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 13 Sep 2014 12:41:43 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on JQGrid 4.5.4 - Column Chooser Bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31105</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31105</guid>
        	        	<description><![CDATA[<p>I can confirm the bug. It's important to mention that the problem don't exist if one uses old versions of jQuery (for example 1.8.3) and old version of jQuery UI (for example 1.8.24).Â I prepared <a href="http://www.ok-soft-gmbh.com/jqGrid/workingColumnChooserWithOldjQuery.htm" target="_blank">the demo</a>Â which uses the old versions ofÂ jQuery andÂ jQuery UI and it seems to work without any problems.</p>
<p>Then I get the last version of jQuery UI Multiselect plugin fromÂ <a href="https://github.com/michael/multiselect/" target="_blank">github</a>Â and made some small changes to use [selected] selector. I changed two lines of jqGrid code too to do the same. As the result the code seems to work for both new jQuery (1.11.1) and new jQuery UI (1.11.0): <a href="http://www.ok-soft-gmbh.com/jqGrid/WorkingColumnChooserWithNewjQueryNewMultiselect.htm" target="_blank">the new demo</a>. It's important to remark that <a href="http://www.ok-soft-gmbh.com/jqGrid/WorkingColumnChooserWithOldjQueryNewMultiselect.htm" target="_blank">the demo</a>Â which uses modified <a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/ui.multiselect-fixed.js" target="_blank">ui.multiselect.js</a>Â and <a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/js/jquery.jqGrid.src-columnChooser.js" target="_blank">modified jqGrid</a>Â works with old versions ofÂ jQuery (1.8.3) andÂ jQuery UI (1.8.24).</p>
<p>The modification which I made in jqGrid was replacingÂ <a href="https://github.com/tonytomov/jqGrid/blob/v4.6.0/js/grid.jqueryui.js#L184" target="_blank">the line</a></p>
<div class="sfcode">
<pre class="brush-javascript syntax">if (this.selected) {</pre></div><p>to the line</p>
<div class="sfcode">
<pre class="brush-javascript syntax">if ($(this).is("[selected]")) {</pre></div><p>and replacingÂ <a href="https://github.com/tonytomov/jqGrid/blob/v4.6.0/js/grid.jqueryui.js#L193" target="_blank">the line</a></p>
<div class="sfcode">
<pre class="brush-javascript syntax">$('option:selected',select).each(function() { perm.push(parseInt(this.value,10)); });</pre></div><p>to the line</p>
<div class="sfcode">
<pre class="brush-javascript syntax">$('option[selected]',select).each(function() { perm.push(parseInt(this.value,10)); });</pre></div><p>Â In the same way I modified <a href="https://github.com/michael/multiselect/blob/master/js/ui.multiselect.js#L123" target="_blank">the line</a>Â </p>
<div class="sfcode">
<pre class="brush-javascript syntax">var options = that.element.find('option').not(":selected");</pre></div><p>ofÂ <em>ui.multiselect.js</em> to the following line</p>
<div class="sfcode">
<pre class="brush-javascript syntax">var options = that.element.find('option').not("[selected]");</pre></div><p>andÂ <a href="https://github.com/michael/multiselect/blob/master/js/ui.multiselect.js#L148-L150" target="_blank">another lines</a>Â </p>
<div class="sfcode">
<pre class="brush-javascript syntax">var item = that._getOptionNode(this).appendTo(this.selected ? that.selectedList : that.availableList).show();

if (this.selected) that.count += 1;</pre></div><p>to the lines</p>
<div class="sfcode">
<pre class="brush-javascript syntax">var isSelected = $(this).is("[selected]"),
    item = that._getOptionNode(this).appendTo(isSelected ? that.selectedList : that.availableList).show();

if (isSelected) that.count += 1;</pre></div><p>One can get the modified version ofÂ <em>ui.multiselect.js</em>Â <a href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/ui.multiselect-fixed.js" target="_blank">here</a>.</p>
<p>Best regards<br />
 Oleg</p>
]]></description>
        	        	<pubDate>Tue, 09 Sep 2014 16:55:17 +0300</pubDate>
        </item>
        <item>
        	<title>bkwdesign on JQGrid 4.5.4 - Column Chooser Bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31100</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p31100</guid>
        	        	<description><![CDATA[<p>I have an implementation of jqGrid 4.5.4 and I have found this bug, too, independently of this thread. It is indeed peculiar. I just wanted to add my voice to this issue.</p>
]]></description>
        	        	<pubDate>Mon, 08 Sep 2014 22:17:20 +0300</pubDate>
        </item>
        <item>
        	<title>pposgate on JQGrid 4.5.4 - Column Chooser Bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p30019</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-5-4-column-chooser-bug#p30019</guid>
        	        	<description><![CDATA[<p>We found a bug with the "Column Chooser" feature in JQGrid 4.5.4. &#160;This bug can be demonstrated in JQGrid&#39;s demo-page, under the "New in version 3.6&#8243; section, in the "Column Chooser" example. &#160;We are using Windows7, and repeated the bug while using IE8, IE9, IE10, IE11, and FF26.&#160;</p>
<p>I will now explain the steps to repeat this bug using screenshots&#8230;</p>
</p>
<p>Step 1: Start with&#8230;</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc1.png"><img src="https://career.orbiscommunications.com/content/documents/cc1.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 2: Click the "Columns" button to open the Column Chooser&#8230;</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc2.png"><img src="https://career.orbiscommunications.com/content/documents/cc2.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 3: Click "Remove All"&#8230;</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc3.png"><img src="https://career.orbiscommunications.com/content/documents/cc3.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 4: Add the "Client" column back&#8230;</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc4.png"><img src="https://career.orbiscommunications.com/content/documents/cc4.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 5: Click the "Ok" button, and now you see the bug (eg: the grid doesn&#39;t show the "Client" column)&#8230;</p>
<p><img src="https://career.orbiscommunications.com/content/documents/cc5.png" width="32"  style="border: 1px solid black;" class="spUserImage" alt="" /></p>
<p>Step 6: Moving along&#8230;. &#160; Click the "Column Chooser" button again&#8230;.</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc6.png"><img src="https://career.orbiscommunications.com/content/documents/cc6.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 7: Add the "Client" column back&#8230;.</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc7.png"><img src="https://career.orbiscommunications.com/content/documents/cc7.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>Step 8: Click the "Ok" button again&#8230;. Now it works!</p>
<p><a href="https://career.orbiscommunications.com/content/documents/cc8.png"><img src="https://career.orbiscommunications.com/content/documents/cc8.png" width="100"  style="border: 1px solid black;" class="spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
]]></description>
        	        	<pubDate>Fri, 20 Dec 2013 19:21:03 +0200</pubDate>
        </item>
</channel>
</rss>