<?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: Issue in posting dropdown data in form edit on jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid</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/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Issue in posting dropdown data in form edit on jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid#p30453</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid#p30453</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<blockquote>
<p>Issue is &#8211; since dropdown option value is set to BankId, BankId is submitted in BankName column.&#160;<br />I  can have BankName set as value field, so the text field and value field  both have BankName set and on submission on BankName is posted. However  I want to submit BankId instead of BankName in JSON posted to server,  however BankId has to be passed in BankId field of JSON and not in  BankName.&#160;</p>
</p>
</blockquote>
<p>I&#39;m lost with this.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sun, 06 Apr 2014 13:38:24 +0300</pubDate>
        </item>
        <item>
        	<title>abhilash.shah on Issue in posting dropdown data in form edit on jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid#p30436</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/issue-in-posting-dropdown-data-in-form-edit-on-jqgrid#p30436</guid>
        	        	<description><![CDATA[<p>Hi all,<br />I have been trying to seek help and fix the issue with submitting dropdown value in jqGrid on form edit, however no luck yet.</p>
<p>I have JSON which contains BankId. I need to show BankName in jqGrid, and on form edit I need to show this field as drop down with list of bank names. I have modified service to return BankName in addition to BankId. I am showing BankName in grid. In edit mode, I am using dataurl for reading another JSON for BankId and BankName. I am using &#39;buildSelect&#39; to build the html formatted string for dropdown, with "value" set as BankId and "text" set as BankName.</p>
<p>Issue is when user selects BankName from dropdwon and submits the form, the submitted JSON has BankId value passed in BankName column of JSON.</p>
<p>For instance, a row is initially bind with below data:</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit2412' value='Select Code' data-codeid='sfcode2412' /></p><div class='sfcode' id='sfcode2412'>{&#34;Id&#34;:2,&#34;BankId&#34;:2, &#34;BankName&#34;:&#34;Bank of America&#34;, &#34;EmployeeId&#34;:2232,&#34;JoiningDate&#34;:&#34;2001-12-23T00:00:00&#34;,&#34;SalaryAmount&#34;:30000.0,&#34;Comments&#34;:&#34;test&#34;}</div></pre>
<p>When I change the Bank Name in dropdown and submit the form, the JSON data posted is below:</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit7449' value='Select Code' data-codeid='sfcode7449' /></p><div class='sfcode' id='sfcode7449'>{&#34;Id&#34;:2,&#34;BankId&#34;:2, &#34;BankName&#34;:&#34;3&#34;, &#34;EmployeeId&#34;:2232,&#34;JoiningDate&#34;:&#34;2001-12-23T00:00:00&#34;,&#34;SalaryAmount&#34;:30000.0,&#34;Comments&#34;:&#34;test&#34;}</div></pre>
<p>Issue is - since dropdown option value is set to BankId, BankId is submitted in BankName column.&#160;<br />I can have BankName set as value field, so the text field and value field both have BankName set and on submission on BankName is posted. However I want to submit BankId instead of BankName in JSON posted to server, however BankId has to be passed in BankId field of JSON and not in BankName.&#160;</p>
<p>How can I achieve this?</p>
<p>Many thanks,<br />Abhilash</p>
]]></description>
        	        	<pubDate>Wed, 02 Apr 2014 15:19:17 +0300</pubDate>
        </item>
</channel>
</rss>