<?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: &#160; on edit/add form</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/on-editadd-form</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/on-editadd-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mistic100 on &#160; on edit/add form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/on-editadd-form#p29207</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/on-editadd-form#p29207</guid>
        	        	<description><![CDATA[<p>temporary workaround : use this callback for add and edit settings</p>
</p>
<p>afterShowForm : function (form) {</p>
<p>&#160; &#160; form.find(&#39;td.DataTD&#39;).each(function() {</p>
<p>&#160; &#160; &#160; &#160; $(this).html($(this).html().replace(/&#38;nbsp;/g, &#39;&#39;));</p>
<p>&#160; &#160; });</p>
<p>}</p>
</p>
<p>edit: actually no, it generates error "cannot call method val of undefined" on edit form, don&#39;t understand why</p>
</p>
<p>edit2: CSS solution,<br />form.find(&#39;td.DataTD&#39;).css(&#39;white-space&#39;,&#39;nowrap&#39;);&#160;</p>
]]></description>
        	        	<pubDate>Tue, 23 Jul 2013 10:58:38 +0300</pubDate>
        </item>
        <item>
        	<title>mistic100 on &#160; on edit/add form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/on-editadd-form#p29201</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/on-editadd-form#p29201</guid>
        	        	<description><![CDATA[<p>edit: the title of the topic should be "&#38;nbsp; on edit/add form"</p>
</p>
<p>Hello</p>
</p>
<p>I came across a display issue with the add/edit form when there is not enough space (on smartphones)</p>
<p>The reason is an extra &#38;nbsp; at the begining of each td.DataTD in th form, it is added line 7507 and never removed (the one of td.CaptionTD is removed though)</p>
</p>
<p>I solved it by replacing line 7568</p>
<p>$("td:eq("+(cp-1)+")",trdata[0]).append(frmopt.elmprefix).append(elc).append(frmopt.elmsuffix);</p>
</p>
<p>by</p>
<p>$("td:eq("+(cp-1)+")",trdata[0]).html(elc).prepend(frmopt.elmprefix).append(frmopt.elmsuffix);</p>
</p>
<p>Mistic</p>
]]></description>
        	        	<pubDate>Mon, 22 Jul 2013 13:36:05 +0300</pubDate>
        </item>
</channel>
</rss>