<?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: jqGrid defaultValue from URL</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url</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/jqgrid-defaultvalue-from-url/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jack.doe77 on jqGrid defaultValue from URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26284</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26284</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks for your reply.</p>
<p>I&#39;m able now to use the function to get default value. But there is a small problem, I have to click Add button twice in order to open the form. Is there something I missed ?</p>
<p>Here&#39;s my code look like :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3033' value='Select Code' data-codeid='sfcode3033' /></p>
<div class='sfcode' id='sfcode3033'>
<p>colModel</p>
<p>{name:&#39;servisNo&#39;, index:&#39;serviceNo&#39;, editable:true, editrules:{required:true}, editoptions:{defaultValue: <strong>get_servisNo</strong>}, width:88, align:&#34;center&#34;}</p>
<p>function get_servisNo() {<br />&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;<a href="http://localhost/hex/index.php/servis/get_servisNo/&#038;#039" rel="nofollow" target="_blank"><a href="http://localhost/hex/index.php" rel="nofollow">http://localhost/hex/index.php</a>.....&#038;#039</a>;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;text&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function ( data ) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; result = data;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; })<br />&#160;&#160;&#160; return result;<br />};</p>
</div>
]]></description>
        	        	<pubDate>Tue, 03 Apr 2012 09:00:02 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqGrid defaultValue from URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26275</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26275</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>This is described into the documentation.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules&#038;s=defaultvalue" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....faultvalue</a></p>
<p>In your case you will need to use it as functuion in which you should use ajax to call the php function.</p>
</p>
<p>Best Regards</p></p>
]]></description>
        	        	<pubDate>Mon, 02 Apr 2012 17:35:16 +0300</pubDate>
        </item>
        <item>
        	<title>jack.doe77 on jqGrid defaultValue from URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26273</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-defaultvalue-from-url#p26273</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m new to jQuery and jqGrid.</p>
<p>Can anyone tell me how to get value as defaultValue for my colModel ?</p>
<p>I&#39;ve create a function in PHP to get the value from database.</p>
<p>What I want to accomplish is when user click Add from jqGrid, the defaultValue run the function to get the value. So it become default value in the input.</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Mon, 02 Apr 2012 12:39:13 +0300</pubDate>
        </item>
</channel>
</rss>