<?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 control inside a cell eg datepicker in cell</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-control-inside-a-cell-eg-datepicker-in-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/help/custom-control-inside-a-cell-eg-datepicker-in-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>PingCrosby on Custom control inside a cell eg datepicker in cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-control-inside-a-cell-eg-datepicker-in-cell#p21889</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-control-inside-a-cell-eg-datepicker-in-cell#p21889</guid>
        	        	<description><![CDATA[<p>Just a little further information on this.</p>
</p>
<p>The reason i need to put a control in a cell is because i have to display xml data in a cell and planned on using JSTree to display the xml.&#160; I planned on just embedding the control directly inside the page.</p>
</p>
<p>Thanks for any help</p>
]]></description>
        	        	<pubDate>Sun, 30 Jan 2011 22:12:08 +0200</pubDate>
        </item>
        <item>
        	<title>PingCrosby on Custom control inside a cell eg datepicker in cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-control-inside-a-cell-eg-datepicker-in-cell#p21880</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-control-inside-a-cell-eg-datepicker-in-cell#p21880</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>I have the need to place a custom contol inside a jqgrid column, I have tried to generate the required html inside the custom formatter method.&#160;&#160; For example to render a datepicker in a cell i have tried the code below.&#160; But what i cannot figure out is what object to append the new &#60;div&#62; to.</p>
</p>
<p>If there is an alternative method to embed a control inside a cell i would really appreciate it.&#160;</p>
</p>
<p>Thanks in advance</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1120' value='Select Code' data-codeid='sfcode1120' /></p>
<div class='sfcode' id='sfcode1120'>function MyFormatFunction(cellval, opts, rwdat, _act)<br />{<br />&#160;&#160; var newdiv = document.createElement(&#39;div&#39;);<br />&#160;&#160; newdiv.setAttribute(&#39;id&#39;, &#34;SOMEIDTHATWONTCLASH&#34;);<br />&#160;&#160; [what object ref would go here to].appendChild(newdiv);<br />&#160;&#160; $(&#34;SOMEIDTHATWONTCLASH&#34;).datepicker( .... ).html &#160; <br />}</div>
<p><input type='button' class='sfcodeselect' name='sfselectit5415' value='Select Code' data-codeid='sfcode5415' /></p>
<div class='sfcode' id='sfcode5415'>colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name: &#39;ColumnWithControl&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatter: MyFormatFunction<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }]</div></p>
]]></description>
        	        	<pubDate>Sat, 29 Jan 2011 22:53:11 +0200</pubDate>
        </item>
</channel>
</rss>