<?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: PostData</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/postdata</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/discussion/postdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>em on PostData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/postdata#p29228</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/postdata#p29228</guid>
        	        	<description><![CDATA[<p>Looks like I solved it.</p>
</p>
<p>The $uid calculation in the function is called twice for some reason. <br />So when I want $uid to be 2, I have to set the $REQUEST uid number to suppose the "$uid=($uid+2)/9;" being called twice.</p>
</p>
<p>Could be some bug in JQGrid?</p>
]]></description>
        	        	<pubDate>Sun, 28 Jul 2013 19:15:29 +0300</pubDate>
        </item>
        <item>
        	<title>em on PostData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/postdata#p29226</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/postdata#p29226</guid>
        	        	<description><![CDATA[<p>&#160;&#160; &#160;</p>
<p>I tried to pass in PostData that is calculated in runtime, but it doesnot work.</p>
<p>Something simple like this doesnot work($uid is not calculated in runtime):</p>
<p>$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);<br />jqGridDB::query($conn,"SET NAMES utf8");<br />$grid = new jqGridRender($conn);<br />$query= &#39;SELECT employeename FROM employees where uid =?&#39;;<br />$grid-&#62;SelectCommand = $query;<br />$grid-&#62;dataType = &#39;json&#39;;</p>
<p>$uid=$_REQUEST[&#39;uid&#39;];</p>
<p>$uid=($uid+2)/9; </p>
<p>$aux = array($uid);</p>
<p>// Let the grid create the model<br />$grid-&#62;setColModel(null, $aux);</p>
<p>// Set some grid options<br />$grid-&#62;setGridOptions(array(<br />&#160;&#160;&#160; "rowNum"=&#62;10,<br />&#160;&#160;&#160; "height"=&#62;"200&#8243;,<br />&#160;&#160;&#160; "rowList"=&#62;array(10,20,30),<br />&#160;&#160;&#160; "sortname"=&#62;"id",<br />&#160;&#160; "postData"=&#62;array("uid"=&#62;$uid)<br />));</p>
<p>$grid-&#62;renderGrid(&#39;#grid&#39;,&#39;#pager&#39;,true, null, $aux, true,true);</p>
<p>Called using ?uid=16 in my URL. ((16+2)/9=2. When I used $uid=2 in replace of $uid=$uid/9+2 and it works fine but I need $uid to be calculated in run time -In the future, I need to encrypt the uid passed in as REQUEST parameter.).</p>
<p>Does JQGrid support real time calculation of the PostData, or is the PostData precalculated in someway since the above simple example doesnot work?</p>
<p>Thanks in advance.</p>
]]></description>
        	        	<pubDate>Sun, 28 Jul 2013 17:23:01 +0300</pubDate>
        </item>
</channel>
</rss>