<?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: dataInit does not return the field value</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/datainit-does-not-return-the-field-value</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/datainit-does-not-return-the-field-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>chandinipt on dataInit does not return the field value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datainit-does-not-return-the-field-value#p24889</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datainit-does-not-return-the-field-value#p24889</guid>
        	        	<description><![CDATA[<p>I have the following dataInit code inside of a column in my jqGrid.&#160;&#160;However, when it fires, it&#160;doesn&#39;t seem to have a value assigned to the form field.&#160; Am I missing something obvious?&#160; Or is it a bug?&#160;</p>
</p>
<p>name: &#39;categoryId&#39;, index: &#39;categoryId&#39;, width: 100, align: &#39;left&#39;, sortable: true, editable: true, edittype: &#39;select&#39;,</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160;&#160; editoptions: { dataUrl: &#39;/Admin/SLA/GetCategories&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataInit : function(elem) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("value is " + $(elem).val());&#160;&#160;&#160;********THIS IS EMPTY***********</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;dataEvents: [</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { type: &#39;change&#39;,&#160;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fn:&#160;function (e) {var v = $(e.target).val();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setSubCategory(v);&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160; ]&#160;&#160;&#160;&#160;&#160; },</p>
<p>editrules: { edithidden: true }, searchtype: "text", searchoptions: { sopt: [&#39;cn&#39;, &#39;eq&#39;, &#39;ne&#39;, &#39;bw&#39;, &#39;ew&#39;, &#39;nc&#39;] }</p>
]]></description>
        	        	<pubDate>Thu, 13 Oct 2011 13:31:07 +0300</pubDate>
        </item>
</channel>
</rss>