<?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: id are saved with idPrefix in case of usage loadonce: true</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true</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/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28565</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28565</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
</p>
<p>Thanks. Just working on this issue -&#160; it should be carfully fixed.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 02 Apr 2013 14:42:57 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28564</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28564</guid>
        	        	<description><![CDATA[<p>Hallo Tony,</p>
<p>I want first remind you that the problem is not yet fixed in the code of jqGrid on github. Additionally I found that <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L3576-L3587" target="_blank">getLocalRow</a> don&#39;t call <strong>$.jgrid.stripPref</strong> method. It seems wrong.</p>
<p>If would be good to search for all cases of usage "<strong>.p._index[</strong>" in the code of jqGrid and to follow one common way of usage rowid and indexes in <strong>_index</strong>. The most close to the current code is the way where <strong>data</strong> parameter are used directly to specify input data and some non-empty <strong>idPrefix</strong> are specified. In the case id <em>without</em> <strong>idPrefix</strong>&#160;are used as property of <strong>_index</strong>. In the same time <em>all callbacks and all methods</em> use <strong>rowid</strong> parameter <em>with</em> <strong>idPrefix</strong>. It seems for me the most native.</p>
<p>I think that one should fix all parts of jqGrid code to follow the way.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 02 Apr 2013 13:36:58 +0300</pubDate>
        </item>
        <item>
        	<title>tony on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28538</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28538</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>I agree wit this and wil maybe revert the changes in treeGrid, so that they are compatible.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 Mar 2013 10:59:29 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28537</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28537</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I have seen the changes in TreeGrid. In any way one have to use one way of saving ids in <strong>_index</strong>. The most methods (like <strong>addRowData</strong> and <strong>setRowData</strong>) use the fact that <strong>_index</strong> contains ids with stripped prefix (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L2913-L2914" target="_blank">here</a> and <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L2981-L2982" target="_blank">this lines</a> together with <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L3042" target="_blank">another one</a>&#160;for example). So to be able to edit grid filled with <strong>loadonce: true</strong> option where <strong>idPrefix</strong> are used one have to fix the bug.</p>
<p>In any way one have to follow <em>one way</em>&#160;of saving ids in&#160;<strong>_index</strong>&#160;<em>in all parts</em> of jqGrid code.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 27 Mar 2013 10:48:46 +0200</pubDate>
        </item>
        <item>
        	<title>tony on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28536</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28536</guid>
        	        	<description><![CDATA[<p>Hello Oleg</p>
<p>I think this should be additional checked, since I have made some changes in treeGrid regarding this before some days</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 Mar 2013 09:58:50 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on id are saved with idPrefix in case of usage loadonce: true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28524</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/id-are-saved-with-idprefix-in-case-of-usage-loadonce-true#p28524</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p><a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L1428" target="_blank">the line</a></p>
<p><input type='button' class='sfcodeselect' name='sfselectit2903' value='Select Code' data-codeid='sfcode2903' /></p>
<div class='sfcode' id='sfcode2903'>ts.p._index[idr] = ts.p.data.length-1;</div>
<p>of <strong>addJSONData</strong> and another line with the same code later (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L1499" target="_blank">here</a>) should be fixed to save in <strong>_index</strong> ids <em>without</em> id prefix like it will be done in case of <strong>datatype: "local"</strong>. The fixed code can be for example</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7482' value='Select Code' data-codeid='sfcode7482' /></p>
<div class='sfcode' id='sfcode7482'>ts.p._index[<strong>$.jgrid.stripPref(ts.p.idPrefix,</strong>idr<strong>)</strong>]&#160;= ts.p.data.length-1;</div>
<p><span style="font-size: 14px;">The same changes one should make inside of <strong>addXmlData</strong> (in <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L1247" target="_blank">the line</a> and in <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L1312" target="_blank">another one</a>).</span></p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 26 Mar 2013 14:50:45 +0200</pubDate>
        </item>
</channel>
</rss>