<?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: cellEdit Textarea newline enter will close cell</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell</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/celledit-textarea-newline-enter-will-close-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dinesh on cellEdit Textarea newline enter will close cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24396</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24396</guid>
        	        	<description><![CDATA[<p>There is another problem with the TEXTAREA, that it loses it&#39;s linebreaks when entering the EDIT mode in cell edit. To prevent it a custom unformatter can be applied to the TEXTAREA column.</p>
<p><a href="http://www.trirand.net/forum/default.aspx?g=posts&#038;t=337&#038;nbsp" rel="nofollow" target="_blank"><a href="http://www.trirand.net/forum/d" rel="nofollow">http://www.trirand.net/forum/d</a>.....&#038;nbsp</a>; post#6</p>
</p>
<p><span style="text-decoration: underline;">my textarea column:</span></p>
<p>{name: &#39;Description&#39;, index: &#39;Description&#39;, width: 300, editable: true, search: false, sorttype: &#39;text&#39;, edittype: &#39;textarea&#39;, unformat: <strong>unfrmttextarea</strong>, editoptions: { rows: "10", cols: "40"} }</p>
<p><span style="text-decoration: underline;">the unformatter func:</span></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function <strong>unfrmttextarea </strong>(cellvalue, options, cellobject) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return cellvalue;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>With all the total 3 (including my prev post) changes, the textarea field now looks promising&#160; 🙂</p>
]]></description>
        	        	<pubDate>Wed, 24 Aug 2011 03:53:29 +0300</pubDate>
        </item>
        <item>
        	<title>dinesh on cellEdit Textarea newline enter will close cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24395</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24395</guid>
        	        	<description><![CDATA[<p>I&#39;m temporarily using the solution posted here :</p>
<p>/blog/?page_id=393/bugs/jqgrid-3-8-1-celledit-enter-key-saves-cell-instead-of-adding-new-line-in-textarea-with-solution/</p>
</p>
<p>I&#39;m using JQGrid 4.1.1. I had to REPLACE:</p>
<p>if (e.keyCode === 13) {$($t).jqGrid("saveCell",iRow,iCol);}//Enter</p>
<p>WITH</p>
<p>if (e.keyCode === 13 &#38;&#38; (e.target.tagName === undefined &#124;&#124; e.target.tagName != &#39;TEXTAREA&#39;)) {$($t).jqGrid("saveCell",iRow,iCol);}//Enter</p>
<p>Another common issue with the textarea is that on Save all the line breaks go away. Temp solutions from here:</p>
<p><a href="http://www.trirand.net/forum/default.aspx?g=posts&#038;t=337" rel="nofollow" target="_blank"><a href="http://www.trirand.net/forum/d" rel="nofollow">http://www.trirand.net/forum/d</a>.....#038;t=337</a></p>
<p>I had to REPLACE:</p>
<p>if($t.p.treeGrid &#38;&#38; $(".tree-wrap",$(tcell)).length&#62;0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("span",$(tcell)).html(v).attr(title);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $(tcell).html(v).attr(title);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
<p>WITH</p>
<p>if($t.p.treeGrid &#38;&#38; $(".tree-wrap",$(tcell)).length&#62;0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("span",$(tcell)).html(v).attr(title);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($t.p.colModel[pos].edittype &#38;&#38; $t.p.colModel[pos].edittype==&#39;textarea&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(tcell).text(v).attr(title);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $(tcell).html(v).attr(title);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
</p>
<p>Hope this helps someone!</p>
]]></description>
        	        	<pubDate>Wed, 24 Aug 2011 01:35:39 +0300</pubDate>
        </item>
        <item>
        	<title>dinesh on cellEdit Textarea newline enter will close cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24391</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p24391</guid>
        	        	<description><![CDATA[<p>This problem still exist!</p>
</p>
<p>@turigeza: Did you find any solution?</p>
<p>Thanks!<strong>&#160;</strong></p>
]]></description>
        	        	<pubDate>Wed, 24 Aug 2011 00:43:47 +0300</pubDate>
        </item>
        <item>
        	<title>turigeza on cellEdit Textarea newline enter will close cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p22173</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/celledit-textarea-newline-enter-will-close-cell#p22173</guid>
        	        	<description><![CDATA[<p>Hi There,</p>
<p>Thank You for this great application by the way.</p>
</p>
<p>The problem is when you set cellEdit true and you have the cell set to textarea hitting enter will cause the data to be save instead of creating a new line. On a text area this is not the expected behavior.&#160;</p>
</p>
<p>I have newest version of cqgrid and it happens on both firefox and chrome.</p>
</p>
<p>Geza</p>
]]></description>
        	        	<pubDate>Tue, 22 Feb 2011 17:12:04 +0200</pubDate>
        </item>
</channel>
</rss>