<?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: Patch for: unable to edit row, where rowid is empty string.</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string</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/patch-for-unable-to-edit-row-where-rowid-is-empty-string/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>szhbug on Patch for: unable to edit row, where rowid is empty string.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p21016</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p21016</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Thanks for the first, I think that we should not allow a row with id = empty string.</p>
</blockquote>
<hr />
<p>Decision of what is allowed in application data should not be made at a library level, it should be made in application level, based on application logic and data, which is unknown for the library. Most application will not produce non-english characters as a key, thats fine, but for those that do, they need to decide themselves, based on application logic, what is allowed. Library should handle any keys, with the only valid restriction for the library level - demand that the keys are unique in a table.</p>
</p>
<p>For example for my application empty string is a valid key in some tables, and whether such row exists - depends on the data, received from external sources. It is not a user input.</p></p>
]]></description>
        	        	<pubDate>Sat, 27 Nov 2010 14:11:45 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Patch for: unable to edit row, where rowid is empty string.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p20874</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p20874</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for the first, I think that we should not allow a row with id = empty string. Indeed I think that</p>
<p>we should chek it for undefined instead of something elese.</p>
</p>
<p>About this:</p>
<p>Warning message "Please, select row"&#160; still appears, I havent found where to fix that.</p>
</p>
<p>Please check if you have the needed css loaded correctley. Please see the diffrenece between developer and runtime installation</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:how_to_install" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....to_install</a></p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 19:06:59 +0200</pubDate>
        </item>
        <item>
        	<title>szhbug on Patch for: unable to edit row, where rowid is empty string.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p20753</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/patch-for-unable-to-edit-row-where-rowid-is-empty-string#p20753</guid>
        	        	<description><![CDATA[<p>When rowid is empty string, jqgrid does not allow edit or view row, due to wrong checks for rowid.</p>
<p>However with the following fix (check for rowid==null instead of !rowid), it works, and send correct data to server.</p>
<p>Warning message "Please, select row"&#160; still appears, I havent found where to fix that.</p>
</p>
<p>--- grid.formedit.js.old&#160;&#160; &#160;2010-11-11 14:59:12.000000000 +0200<br />+++ grid.formedit.js&#160;&#160; &#160;2010-11-11 15:18:21.000000000 +0200<br />@@ -324,11 +324,11 @@<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewPagerButtons : true<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;}, $.jgrid.edit, p &#124;&#124; {});<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;rp_ge = p;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;return this.each(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var $t = this;<br />-&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (!$t.grid &#124;&#124; !rowid) { return; }<br />+&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (!$t.grid &#124;&#124; rowid==null) { return; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var gID = $t.p.id,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;frmgr = "FrmGrid_"+gID,frmtb = "TblGrid_"+gID,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;IDs = {themodal:&#39;editmod&#39;+gID,modalhead:&#39;edithd&#39;+gID,modalcontent:&#39;editcnt&#39;+gID, scrollelm : frmgr},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onBeforeShow = $.isFunction(rp_ge.beforeShowForm) ? rp_ge.beforeShowForm : false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onAfterShow = $.isFunction(rp_ge.afterShowForm) ? rp_ge.afterShowForm : false,<br />@@ -1070,11 +1070,11 @@<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;beforeShowForm : null,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewPagerButtons : true<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;}, $.jgrid.view, p &#124;&#124; {});<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;return this.each(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var $t = this;<br />-&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (!$t.grid &#124;&#124; !rowid) { return; }<br />+&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (!$t.grid &#124;&#124; rowid==null) { return; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(!p.imgpath) { p.imgpath= $t.p.imgpath; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// I hate to rewrite code, but ...<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var gID = $t.p.id,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;frmgr = "ViewGrid_"+gID , frmtb = "ViewTbl_"+gID,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;IDs = {themodal:&#39;viewmod&#39;+gID,modalhead:&#39;viewhd&#39;+gID,modalcontent:&#39;viewcnt&#39;+gID, scrollelm : frmgr},</p>
]]></description>
        	        	<pubDate>Thu, 11 Nov 2010 15:41:33 +0200</pubDate>
        </item>
</channel>
</rss>