<?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: how to modify a "select" in the add/edit form?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-modify-a-select-in-the-addedit-form</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/how-to-modify-a-select-in-the-addedit-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>bogoa666 on how to modify a "select" in the add/edit form?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-modify-a-select-in-the-addedit-form#p21697</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-modify-a-select-in-the-addedit-form#p21697</guid>
        	        	<description><![CDATA[<p>I have resolved the problem by using firebug.&#160;</p>
<div id="post21696">
<p>$("#dependence") works fine xDDDDDD</p>
</div>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 23:34:31 +0200</pubDate>
        </item>
        <item>
        	<title>bogoa666 on how to modify a "select" in the add/edit form?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-modify-a-select-in-the-addedit-form#p21693</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-modify-a-select-in-the-addedit-form#p21693</guid>
        	        	<description><![CDATA[<p>Hi, I have to fill a select with values dinamically. It&#39;s works with a select out of the jqgrid table but not when I try to add/edit a row in my table. I think the problem is de access to the form element but I don&#39;t know how to do it.</p>
</p>
<p>For example:</p>
<p><span style="text-decoration: underline;">This is my column in the table:</span><br />{name:&#39;dependence&#39;, index:&#39;dependence&#39;, width:85, align:&#39;center&#39;, editable:true, edittype:&#39;select&#39;, search: false}</p>
<p><span style="text-decoration: underline;">This is a select out of my jqgrid table:</span></p>
<p>&#60;select name="test" id="test"&#62;&#60;/select&#62;</p>
<p><span style="text-decoration: underline;">This is my code event:</span><br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; url: &#39;@{Application.getDependencesSelect()}&#39;, // Calling my server function<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; processData: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; dataType: "application/xml",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; success: function(data) {<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var res = $(data).html();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("<strong>#test</strong>").html(res); // it&#39;s works<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("<strong>select#dependence</strong>").html(res); // it&#39;s doesn&#39;t work<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
<p><span style="text-decoration: underline;">This is the server function code:</span></p>
<p>&#160;&#160;&#160; public static void getDependencesSelect(){&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;StringBuffer xml = new StringBuffer("&#60;select&#62;&#60;option value=&#39;1&#39;&#62;dependence1&#60;/option&#62;&#60;option value=&#39;2&#39;&#62;dependence2&#60;/option&#62;&#60;/select&#62;");<br />&#160;&#160; &#160;&#160;&#160; &#160;renderXml(xml.toString());&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; }&#160;</p>
<p>Regards, Adrian.</p>
]]></description>
        	        	<pubDate>Sat, 15 Jan 2011 22:47:11 +0200</pubDate>
        </item>
</channel>
</rss>