<?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: Custom cell editor</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor</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/help/custom-cell-editor/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>descsuit on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8559</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8559</guid>
        	        	<description><![CDATA[<p>The problem is the HTML editors wrap the textarea element.. so if I&#39;m given a textarea as the element argument, I can&#39;t replace it with the wrapping.&#160; It doesn&#39;t add to or modify the element, it replaces it.. (with a div and other such).&#160; I haven&#39;t found a htmlarea that doesn&#39;t work that way.</p>
</p>
<p>Alan</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 12:18:36 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8503</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8503</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you print the html using jQuery html you will have in all cases the content and not the element.</p>
<p>You should make difference between the html and the element.</p>
<p>I think that this is possible - just try to attach the editor to the element (not to the html) and you will see the result.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 01:41:00 +0300</pubDate>
        </item>
        <item>
        	<title>descsuit on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8433</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8433</guid>
        	        	<description><![CDATA[<p>I know afterCellEdit is supposed to be after the tag is in place, but when I print the html of the cell during the callback it shows no textarea.. just what was there to start.&#160; jQuery wouldn&#39;t find the textarea... etc...</p>
<p>When I&#39;ve tried to write my own content in there during the afterCelEdit, it gets overwritten by the textarea tag.</p>
<p>Is the textarea special?</p>
</p>
<p>Alan</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 13:59:45 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8406</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8406</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>afterEditCell is a event which is called after the element is created and inserted into the grid.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 05:36:38 +0300</pubDate>
        </item>
        <item>
        	<title>descsuit on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8377</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8377</guid>
        	        	<description><![CDATA[<p>As I see it the dataInit function passes you the element but it isn&#39;t in context.. therefore you can edit the element (change attributes of the element, callbacks, etc.. of in this case the textarea) but you can&#39;t change what the element is.&#160; If it was a container element I could change what it contained.. or if there was a place to put other content that wasn&#39;t overwritten with by the element I could still insert something and hide the text area.. but there isn&#39;t.</p>
<p>So I don&#39;t see how to solve this short of adding my own edittype.&#160; Which seems a little scary, but might be doable.&#160; It&#39;d be nicer if there was some kind of extension point there.. but as it is I&#39;ll have to have a custom version of the grid javascript.</p>
<p>I figure I&#39;ll have to add cases to: createEl, saveRow, editCell, saveCell (for some reason editRow doesn&#39;t seem to mention textareas at all.. hrmm..</p>
<p>The only alternative I can think of is if there is a callback that occurs after the editing element is put in place.. but I haven&#39;t found one.</p>
<p>Alan</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 17:09:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8362</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8362</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe (never try) you will need to set edittype:&#39;textarea&#39; and the use dataInit event (see docs) to attach the editor to this field.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 03:37:35 +0300</pubDate>
        </item>
        <item>
        	<title>descsuit on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8361</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8361</guid>
        	        	<description><![CDATA[<p>A configurable HTML editor, like TinyMCE or FCKEdit or maybe something simpler as long as I can configure it to have those character tags I need (em, strong, sub/superscript, maybe a few others).</p>
</p>
<p>Alan</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 03:12:00 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8358</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8358</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You want to overwrite the input element with what?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 00:53:25 +0300</pubDate>
        </item>
        <item>
        	<title>descsuit on Custom cell editor</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8335</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-cell-editor#p8335</guid>
        	        	<description><![CDATA[<p>I&#39;m looking to make a custom cell editor.&#160; My first inclination was to step in with an afterEditCell callback and overwrite the input element that had been created.&#160; This doesn&#39;t work as far as I can tell because the input element is not in the DOM at that point.. anything I write into that cell will get overwritten with the input tag apparently after this callback is through..&#160; I tried to log to the firebug console the contents of the cell and there&#39;s no input tag when logged at the beginning of the call back..</p>
<p>Am I right in thinking that is how it happens? and is there a better callback or a different way of approaching this that I&#39;m missing?</p>
<p>If you are curious, I need an HTML editor in there with support for some character based tags (like strong, em, subscript, superscript)..</p>
</p>
<p>DescSuit</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 19:24:02 +0300</pubDate>
        </item>
</channel>
</rss>