<?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: visual bug related to addRowData</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata</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/visual-bug-related-to-addrowdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on visual bug related to addRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9637</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9637</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will look at this again. Thanks</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 12:54:03 +0300</pubDate>
        </item>
        <item>
        	<title>Jan on visual bug related to addRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9608</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9608</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>are you sure this bug is fixed? I just updated to v3.5.3 and i still have this bug while it&#39;s supposed to be solved according to the changelog .. some other problems I had before are solved now though, so thanks a lot for that.</p>
</p>
<p>I hope you&#39;ll look into it again <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
<p>thx in advance,</p>
<p>Jan</p>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 07:48:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on visual bug related to addRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9208</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9208</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this. Fixed in GitHub.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Sep 2009 03:54:51 +0300</pubDate>
        </item>
        <item>
        	<title>Jan on visual bug related to addRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9172</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/visual-bug-related-to-addrowdata#p9172</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
</p>
<p>i&#39;m using jqGrid 3.5.2 and think i&#39;ve found a bug. When adding a new row &#39;before&#39; the currently first row all collumns lose their original width setting.</p>
<p>You can see what i mean in this picture:</p>
<p><a href="http://img12.imageshack.us/img12/2387/jqgridaddrowdatabug.jpg" rel="nofollow" target="_blank"><a href="http://img12.imageshack.us/img" rel="nofollow">http://img12.imageshack.us/img</a>.....atabug.jpg</a></p>
<p>The first part shows the normal layout, the second part shows what happens when I &#39;move&#39; the second row up so that it becomes the first row. When i move the row back down the layout becomes normal again. The &#39;move&#39; happens with this function:</p>
<p>Singleton.jqGrid.moveUp = function(gridSelector) { // moveup all selected rows<br />&#160;&#160;&#160; var jqGrid = $(gridSelector);<br />&#160;&#160;&#160; var selection = jqGrid.getGridParam(&#39;selarrrow&#39;).slice(0);<br />&#160;&#160;&#160; var alle = jqGrid.getDataIDs();<br />&#160;&#160;&#160; var sortedSelection = new Array();<br />&#160;&#160;&#160; $.each(alle, function(i, val) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($.inArray(val, selection) != -1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortedSelection.push(val);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; for (var i in sortedSelection) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = sortedSelection[i];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var positie = $.inArray(id, alle);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (positie != 0) // element is at top already<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var aboveRowId = jqGrid.getDataIDs()[positie - 1];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($.inArray(aboveRowId, sortedSelection) == -1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var movingRow = jqGrid.getRowData(id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jqGrid.delRowData(id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jqGrid.addRowData(id, movingRow, &#39;before&#39;, aboveRowId);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jqGrid.setSelection(id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }<br />}</p>
<p>In previous versions of jqgrid this worked without problems, and now as longs as the move doesnt require adding an element before the first row it&#39;s good too.</p>
</p>
<p>Please have a look into this problem,</p>
<p>thanks a lot in advance,</p>
</p>
<p>Jan</p>
]]></description>
        	        	<pubDate>Tue, 01 Sep 2009 06:02:54 +0300</pubDate>
        </item>
</channel>
</rss>