<?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: A little help Please - Problem with code segment.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment</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/a-little-help-please-problem-with-code-segment/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nelsonm on A little help Please - Problem with code segment.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25104</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25104</guid>
        	        	<description><![CDATA[<p>I looked at the php demo before you mentioned it.&#160; Unfortunetly, there is nothing their that can help since it&#39;s completely handled by the php "setAutocomplete" function and i&#39;m using jqgrid on the client side in javascript.&#160; I have already invested too much time programming jqgrid under javascript to purchase and reprogram the app in jqgrid php.</p>
<p>However the function of the "setAutocomplete" function does pretty much what i need to do.&#160; I need to...</p>
<blockquote>
<p>1. (done) select, via autocomplete, server side table column data from the jqgrid edit form.</p>
<p>2. (not sure) update other jqgrid edit form fields with server side data related to the selected data item.</p>
<p>3. (working on it) post data related to the selected edit form data item back to the server to update the jqgrid row i&#39;m editing.</p>
</blockquote>
<p>I&#39;m guessing that there is no easy way to do this under javascript jqgrid and that there probably is no&#160; "setAutocomplete" function for javascript?</p>
]]></description>
        	        	<pubDate>Wed, 09 Nov 2011 01:21:36 +0200</pubDate>
        </item>
        <item>
        	<title>tony on A little help Please - Problem with code segment.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25086</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25086</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>You can store this id in variable and use beforeSubmit event when the record is added. See the parameters passed to this event - i.e you can extend the posted data with this id.</p>
</p>
<p>Another approach is to have this field and fill it when the record is selected.</p>
<p>Some code you may get from our commertial componet here:</p>
<p><a href="http://www.trirand.com/blog/phpjqgrid/examples/integrations/autocompl_sethidden/default.php" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/ph" rel="nofollow">http://www.trirand.com/blog/ph</a>.....efault.php</a></p>
</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Mon, 07 Nov 2011 12:59:36 +0200</pubDate>
        </item>
        <item>
        	<title>nelsonm on A little help Please - Problem with code segment.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25083</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/a-little-help-please-problem-with-code-segment#p25083</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I&#39;m using&#160; autocomplete in the "editoptions" property of colModel.&#160; I&#39;ts receiving customer id/value pair suggestions to select for an add new record operation.&#160; I&#160; display the item.value&#39;s in the suggestion window.&#160; However, i want the item.id of the selected item.value to be added to the "Add Record" window postdata passed to the server on submit.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6076' value='Select Code' data-codeid='sfcode6076' /></p>
<div class='sfcode' id='sfcode6076'>&#160;&#160;&#160; $(&#39;#tab3-grid&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Workorder&#39;, &#39;Customer&#39;, &#39;Technician&#39;, &#39;State&#39;, &#39;Service&#39;, &#39;Service Date&#39;, &#39;Time BLock&#39;, &#39;Payment Type&#39;, &#39;Total&#39;, &#39;Status&#39;, &#39;Notes&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//use &#39;id&#39; if you want aftersubmit: function new-id to work.<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; index:&#39;wo.WOID&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 70, fixed:true, align:&#39;center&#39;, sortable:true,&#160; editable:false, edittype:&#39;text&#39;,&#160;&#160;&#160;&#160; editoptions:{readonly:true,size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;wo.CUID&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; index:&#39;cu.LastName&#39;,&#160;&#160;&#160;&#160;&#160;&#160; width:120, fixed:true, align:&#39;center&#39;, sortable:true,&#160; editable:true,&#160; edittype:&#39;text&#39;,<br /><span style=&#34;color: #ff6600;&#34;>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{dataInit:function(el){$(el).autocomplete({ source: &#39;php/customer-ac-script.php&#39; <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;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;, minLength: 1<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;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;, change: function(event, ui) { <span style=&#34;color: #00ff00;&#34;>code to add ui.item.id to submit postdata</span> }<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;&#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;&#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; }},</span></p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;formoptions:{rowpos: 1, label:&#39;Customer&#39;, elmprefix:&#39;* &#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editrules:{required:true}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},</p>
</div>
<p>any help would be appeceated.</p>
]]></description>
        	        	<pubDate>Sat, 05 Nov 2011 06:43:36 +0200</pubDate>
        </item>
</channel>
</rss>