<?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: gbox variable not set when reopening a formedit</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit</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/gbox-variable-not-set-when-reopening-a-formedit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Basdub on gbox variable not set when reopening a formedit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12216</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12216</guid>
        	        	<description><![CDATA[<p>First option seems to work.</p>
</p>
<p>I&#39;ll check the other tomorrow. Thanks again!</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 23:38:39 +0200</pubDate>
        </item>
        <item>
        	<title>Basdub on gbox variable not set when reopening a formedit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12215</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12215</guid>
        	        	<description><![CDATA[<p>Thanks Mark will try the recreate form. Got it set but not on the edit parameter of the edit button (pencil);</p>
</p>
<p>Otherwise, I don&#39;t know if i could set that parameter in my php jGrid class. Will give it a shot!</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 23:31:14 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on gbox variable not set when reopening a formedit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12214</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12214</guid>
        	        	<description><![CDATA[<p>Looks like if you set "recreateForm:true" in the editGridRow options, you&#39;ll always get access to this.gbox.</p>
</p>
<p>Also, you can always give your serialize function the name of the grid (or even the grid object) via a closure:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6481' value='Select Code' data-codeid='sfcode6481' /></p>
<div class='sfcode' id='sfcode6481'>
<p>myGrid.jqGrid("navGrid", ..., { ...</p>
<p>&#160;&#160;&#160; serializeEditData : (function(grid) { return function(postdata) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do something with postdata and grid</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } })(myGrid),</p>
<p>&#160;&#160;&#160; ...} ...);</p>
</div>
<p>Yes, its an ugly hack <img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 22:52:28 +0200</pubDate>
        </item>
        <item>
        	<title>Basdub on gbox variable not set when reopening a formedit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12211</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gbox-variable-not-set-when-reopening-a-formedit#p12211</guid>
        	        	<description><![CDATA[<p>When submitting a record to the server, the serializeEditData function is called properly and "this" contains the gbox variable containing the value "#gbox_theIdofthegrid". After editing another record (the form edit is reopened) and the submit button is pressed, the serializeEditData function is called properly BUT "this" doesn&#39;t contain the gbox variable.</p>
</p>
<p>Why so important? It is the ONLY way I&#39;ve found,to this date, to know which grid i&#39;m working with. When data is submitted to the server, I absolutely need to know from which grid/table.</p>
</p>
<p>I strongly believe, if there are no other way to know the grid id, that the grid itself should be passed to every event custom function. If not possible, at least the id should be provided so the grid could be called.</p>
</p>
<p>If no fix possible, can anybody provide a solution to get to the jgrid?</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 21:06:52 +0200</pubDate>
        </item>
</channel>
</rss>