<?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 DatePicker, Time Input, File Upload and Button</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-datepicker-time-input-file-upload-and-button</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-datepicker-time-input-file-upload-and-button/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>madcatin on Custom DatePicker, Time Input, File Upload and Button</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-datepicker-time-input-file-upload-and-button#p27991</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-datepicker-time-input-file-upload-and-button#p27991</guid>
        	        	<description><![CDATA[<p>I have 4 custom inputs (DatePicker, Time Input, File Upload and Button)&#160;which are included to the JQGrid. They work as desired from fetching data or setting data.</p>
<p>But i am not able to add any events to them. I need help very urgently.</p>
<p>Here is the Code that i use:</p>
<p>colModel =&#62; editionoptions as follows<br />edittype="custom";<br />editOptions["custom_element"]=GridDatePicker;<br />editOptions["custom_value"]=GridDatePickerValue;</p>
<p>editOptions["dataInit"]= function(e){<br />&#160;try<br />&#160;{<br />&#160;&#160;//this is not called<br />&#160;&#160;alert ("not calling1");<br />&#160;}<br />&#160;catch(err)<br />&#160;{<br />&#160;&#160;<br />&#160;}<br />&#160;};<br />&#160;<br />&#160;function GridDatePicker(value, options) {<br />&#160;&#160;&#160; &#160;var div = document.createElement("div")<br />&#160; &#160;var el = document.createElement("input");<br />&#160; &#160;el.setAttribute("id", options.id+"cal");<br />&#160; &#160;el.setAttribute("style", "width:70%");<br />&#160;el.setAttribute("custom", options.customdata);<br />&#160; &#160;el.type="text";<br />&#160; &#160;el.value = value;<br />&#160; &#160;div.setAttribute("style", "width:100%");<br />&#160; &#160;$(div).append(el);<br />&#160; return div;<br />}</p>
<p>function GridDatePickerValue(elem, operation, value) {<br />&#160;&#160;&#160; if(operation === &#39;get&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160; return $(elem).find("input").val();<br />&#160;&#160;&#160; } else if(operation === &#39;set&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160; $(elem).find("input").val(value);<br />&#160;&#160;&#160; }<br />}</p>
]]></description>
        	        	<pubDate>Tue, 08 Jan 2013 13:13:38 +0200</pubDate>
        </item>
</channel>
</rss>