<?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: Customise server access</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access</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/customise-server-access/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>hawkettc on Customise server access</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10815</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10815</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>&#160; My bad for missing that <a href="/jqgridwiki/doku.php?id=wiki:retrieving_data" target="_blank">in the docs</a> - where it is described clearly.&#160; Thanks for the details, that sorts out my main problem completely,</p>
</p>
<p>Colin</p>
]]></description>
        	        	<pubDate>Sun, 18 Oct 2009 05:26:23 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Customise server access</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10810</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10810</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure if you read the docs, but in principe you have to choice two possibilities:</p>
<p>1. Completley use your own request with options and callbacks what you want. This can be achieved using the grid option datatype as function</p>
<p>See documentation:</p>
<p>datatype : function (postdata) {</p>
<p>// here you jax code or what you want</p>
<p>$.ajax({..</p>
<p>complete: function(...) {</p>
<p>var data = .....</p>
<p>var mygrid&#160; = $("#mygrid")[0];</p>
<p>mygrid.addJSONData(data);</p>
<p>// or mygrid.addXMLData(data);</p>
<p>}</p>
<p>});</p>
<p>}</p>
</p>
<p>...</p>
</p>
<p>2. To easy the proces we have created a serialize function. The purpose of this function is to serialize the data posted to the server (By example in json string or xml string). In this case the developer should use your own method to do this.</p>
<p>Example:</p>
</p>
<p>onserializeGridData&#160; : function (postdata) {</p>
<p>var mypost = JSON.stringify(postdata);</p>
<p>return mypost; // this is JSON string</p>
<p>}</p>
</p>
<p>Hope this help</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 18 Oct 2009 03:53:00 +0300</pubDate>
        </item>
        <item>
        	<title>hawkettc on Customise server access</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10807</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10807</guid>
        	        	<description><![CDATA[<p>I took a look at the &#39;Ajax Improvements&#39; demo for 3.6, and specifically the serializeGridData, which appars to be designed to modify the request data prior to the $.ajax() call &#8211; however the following options in that example still appear to control the actual $.ajax() request itself -</p>
<p>&#8230;</p>
<p>ajaxGridOptions : {type:&#8221;POST&#8221;},</p>
<p>url:&#39;server.php?q=2&#39;</p>
<p>&#8230;</p>
</p>
<p>I may have misunderstood the example, but it wasn&#39;t clear to me how I would use this mechanism to modify the request URL, or to use my own framework to make the $.ajax() call &#8211; is it possible to remove the above two options completely, so that jqGrid is not responsible for making the call?&#160; e.g.</p>
</p>
<p>jQuery(&#8221;#jqgajax&#8221;).jqGrid({</p>
<p>&#160; getData: function (requestData, callback) {</p>
<p>&#160;&#160;&#160; $.ajax({</p>
<p>&#160;&#160;&#160;&#160;&#160; type: &#8220;GET&#8221;,</p>
<p>&#160;&#160;&#160;&#160;&#160; url: &#8220;/myURL&#8221;,</p>
<p>&#160;&#160;&#160;&#160;&#160; data: requestData,</p>
<p>&#160;&#160;&#160;&#160;&#160; dataType:&#8221;xml&#8221;,</p>
<p>&#160;&#160;&#160;&#160;&#160; complete: function(xmlResponse) {callback(xmlResponse);}</p>
<p>&#160;&#160;&#160; });</p>
<p>&#160; },</p>
<p>&#160; dataType: &#8220;xml&#8221;,</p>
<p>&#160; colNames: &#8230;,</p>
<p>&#160; colModel: &#8230;,</p>
<p>&#160; &#8230;</p>
<p>}</p>
</p>
<p>I may have missed some documentation, but I am also aware that 3.6 has only just been released, and the documentation for what I am looking for may not yet be available &#8211; thanks,</p>
</p>
<p>Colin</p>
]]></description>
        	        	<pubDate>Sun, 18 Oct 2009 00:58:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Customise server access</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10785</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10785</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1. Look at what is new in 3.6. Thi is exactley what you want. Now the developer can serialize the data in a way that they want</p>
<p>2. Not directly. Maybe you will need to get the data from the table in appropriate format and tup it with addJSONData</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 17 Oct 2009 06:45:52 +0300</pubDate>
        </item>
        <item>
        	<title>hawkettc on Customise server access</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/customise-server-access#p10761</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>&#160;&#160; I am assessing jqGrid for my project, and have come across some things that may be an issue for me - but perhaps I am misunderstanding jqGrid.&#160; I have two questions</p>
</p>
<p>1.&#160; <strong>RESTful URI</strong> - I have a few reasons to take control of the ajax request - one because the URL may change - e.g. in the TreeGrid, each set of children come from a different URL - ( in REST, a resource, or collection of resources should have a unique URI), so when I open a tree node, I do not want a GET parameter specifying the parent, I use a different URL.&#160; A second reason is that I have a client side data access framework in place already - it takes care of many things, including caching data (for example).&#160; I use this framework in many other situations apart from jqGrid.&#160; I am wondering if it is possible/easy to take responsibility for the actual $.ajax() call - e.g. could I provide a function instead of a URL?&#160; This function would take a standard set of parameters specified by jqGrid and return data in the required format.&#160; I can then manipulate the URL to my liking, as well as use my own data access framework.</p>
</p>
<p>2. <strong>HTML rendering</strong> - I have seen the tableToGrid module - will this work with the treegrid?</p>
</p>
<p>Thanks,</p>
</p>
<p>Colin</p>
]]></description>
        	        	<pubDate>Fri, 16 Oct 2009 01:51:58 +0300</pubDate>
        </item>
</channel>
</rss>