<?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: loadError fires on initialize of grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/loaderror-fires-on-initialize-of-grid</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/loaderror-fires-on-initialize-of-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>KamelJabber on loadError fires on initialize of grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loaderror-fires-on-initialize-of-grid#p28679</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loaderror-fires-on-initialize-of-grid#p28679</guid>
        	        	<description><![CDATA[<p>I did solve this issue, sorry.</p>
<p>In a previous like I setup the jqgrid colmodel, etc. &#160;In that call I start with a datatype:&#39;local&#39;.</p>
</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 22:46:09 +0300</pubDate>
        </item>
        <item>
        	<title>KamelJabber on loadError fires on initialize of grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loaderror-fires-on-initialize-of-grid#p28676</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loaderror-fires-on-initialize-of-grid#p28676</guid>
        	        	<description><![CDATA[<p>I am a bit confused. &#160;I hooked the loadError event on my grid. &#160;However, it is fired when I am setting it via &#39;setGridParam&#39;.</p>
<p>I would have expected the preload events to fire but they do not.</p>
<p>If I do a relaodgrid, all the "pre" events fire. &#160;IE "serializeGridData", "beforeRequest", "beforeProcessing", "loadBeforeSend".</p>
<p>In summary, when I call &#39;setGridParam&#39; no events fire except for loadError.</p>
<p>If I do a "reloadGrid" all the pre events fire and the grid loads successfully.</p>
<p>So what is causing loadError to fire and how do I ignore it when it&#39;s not a result of a service call?</p>
<pre>grid.jqGrid(&#39;setGridParam&#39;, {
    url: svc.getWebAPIUrl(&#39;Incident&#39;, &#39;GetIncidents&#39;),
    datatype: &#39;json&#39;,
    serializeGridData: function (pdata) {
        debugger;
        var s = (pdata.page - 1) * pdata.rows;
        var e = pdata.rows;

        return &#39;csId=&#39; + pdata.CSID + &#39;&#38;folderid=&#39; + pdata.folderId +
               &#39;&#38;uId=0&#38;s=&#39;+ s + &#39;&#38;e=&#39; + e;
    },
    beforeProcessing: function (data, status, jqXHR) {
        debugger;
    },
    beforeRequest: function () {
        debugger;
    },
    loadBeforeSend: function (xhr, settings) {
        debugger;
    },
    loadComplete: function () {
        alert(&#39;OK&#39;);
    },
    loadError: function (jqXHR, textStatus, errorThrown) {
        //debugger;
        alert(util.getErrorMessage({jqXHR: jqXHR, textStatus: textStatus}));
    }
});
</pre>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 22:03:20 +0300</pubDate>
        </item>
</channel>
</rss>