<?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: Order of grid events?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events</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/order-of-grid-events/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Klaus on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17446</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17446</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>I&#39;ve just added a new callback event ("ajaxComplete") to the grid which helps me with some performance measuring.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7202' value='Select Code' data-codeid='sfcode7202' /></p>
<div class='sfcode' id='sfcode7202'>
<p>@populate = function ...<br />&#160; $.ajax(...<br />&#160;&#160;&#160; success: function(req,st) {<br />+&#160;&#160;&#160; if($.isFunction(ts.p.ajaxComplete)) { ts.p.ajaxComplete.call(ts,req,st); }<br />...</p>
<p>&#160;(+ added ajaxComplete: null to global param init)</p>
</div>
<p>This event (ajaxComplete) should be called directly after the AJAX response returned from the server (as the loadComplete function might be intended to be initially).</p>
<p>Maybe you could integrate this to the base code - would be useful for several purposes.</p>
</p>
<p>With this new event I measured the loading times and discovered the following:</p>
<ul>
<li>the data loading (addJSONData) is much more time-consuming - time between ajaxComplete and gridComplete
<ul>
<li>about 100-200ms for a table with 20 rows and 30 cols (loading from server as JSON-data)</li>
<li>could this be improved (I already use gridview:true option)?</li>
</ul>
</li>
<li>than the rendering of the data - time between gridComplete and loadComplete
<ul>
<li>about 50ms (same table)</li>
</ul>
</li>
</ul>
<p>Could you also update the event descriptions on the wiki page (gridComplete and loadComplete are not really invoked the way they are described - as described in new event order)</p>
</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 16:44:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17341</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17341</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Done. I have add this into the docs.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events#execution_order" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....tion_order</a></p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 17:48:50 +0300</pubDate>
        </item>
        <item>
        	<title>Klaus on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17326</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17326</guid>
        	        	<description><![CDATA[<p>Thank you.</p>
<p>It&#39;s no problem which event is called first, but I need a SPEC with the order of the events I can rely on.</p>
<p>Please describe the exact order of all callback events in the documentation (Wiki - Events-page).</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 10:47:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17325</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17325</guid>
        	        	<description><![CDATA[<p>Hello Klaus,</p>
<p>We will stay as it is in the moment. I will change only the code for datatype xmlstring and jsonstring so the the order will be the same in all datatypes.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 10:40:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17270</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17270</guid>
        	        	<description><![CDATA[<p>Hello Klaus,</p>
<p>Just checked this. You are right.</p>
<p>Never mind. Seems that the behaviour changes, when we add some stuffs for scroll :1.</p>
<p>Let me think what to do.</p>
<p>Thanks again.</p>
<p>Best Regards</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 12:34:03 +0300</pubDate>
        </item>
        <item>
        	<title>Klaus on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17258</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17258</guid>
        	        	<description><![CDATA[<p>no, I&#39;m using normal paging (and jqGrid 3.6.5).</p>
<p>why? does the event order differ?</p>
<p>I need these callbacks to separate the network time and the rendering time the grid uses, so the order is very important (1 event before the request is sent to the server, 1 event after the response from the server and the last event after rendering is done)</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 00:28:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17221</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17221</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Are you using in this case scroll:1 ?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 19:31:01 +0300</pubDate>
        </item>
        <item>
        	<title>Klaus on Order of grid events?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17217</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/order-of-grid-events#p17217</guid>
        	        	<description><![CDATA[<p>Is there an exact description of the order of the grid callback events?</p>
<p>I assumed the following order:</p>
<ol>
<li>beforeRequest</li>
<li>loadBeforeSend</li>
<li>serializeGridData</li>
<li>loadComplete / loadError</li>
<li>gridComplete</li>
</ol>
<p>BUT after adding debugging statements into my code I discovered the following behaviour<br />... that gridComplete is fired before loadComplete ... is this correct? why?</p>
<p>I thought that loadComplete is directly called after the XHR returned and gridComplete is the last event called (after rendering the grid)</p>
<p>Please tell me the order of the events I can rely on</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 17:40:53 +0300</pubDate>
        </item>
</channel>
</rss>