<?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: Events misleading</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/events-misleading</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/bugs/events-misleading/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>elitemike on Events misleading</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/events-misleading#p22185</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/events-misleading#p22185</guid>
        	        	<description><![CDATA[<p>I&#39;ve been working with the grid for quite some time now and I came across a case where I&#39;m realoading the grid based on information that is typed into a text box.&#160; Kind of like an auto complete box.</p>
<p>The issue is with the events.&#160; gridComplete and loadComplete</p>
<p>Your documented definitions are backwards to me.</p>
<p>gridComplete: "This fires after all the data is  loaded into the grid and all other processes are complete. Also the  event fires independent from the datatype parameter and after sorting  paging and etc."</p>
<p>loadComplete: "This event is executed immediately after every server request. <br /> <em>data</em> Data from the response depending on datatype grid parameter"</p>
<p>Anyone reading that would think gridComplete is the last event fired, but I know it&#39;s not and that is documented.....</p>
</p>
<p>My big issue is with the way the "loadComplete" event is handled.&#160; That event should be the last peice of code firing after endReq() is called.&#160; Or there needs to be another event which is the true "ALL GRID PROCESSES COMPLETED" event.&#160; I say this because I need to know when I can trigger another reload of the grid and since the reload can&#39;t happen while the hDiv.loading is true, my grid breaks.</p>
</p>
<p>The easy fix so there aren&#39;t breaking changes would be to add a final event. I&#39;m fixing my problem temporarily by putting a very brief timeout on the code that is called on the loadComplete event, but I dont&#39; like this solution. I don&#39;t want to modify the jqgrid files, because I don&#39;t want any future updates to break this special instance.</p>
</p>
<p>This is a good plugin that could be great.</p>
]]></description>
        	        	<pubDate>Wed, 23 Feb 2011 22:42:52 +0200</pubDate>
        </item>
</channel>
</rss>