<?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: scroll generates too many server calls</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-generates-too-many-server-calls</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/scroll-generates-too-many-server-calls/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Ken C. Len on scroll generates too many server calls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-generates-too-many-server-calls#p23119</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-generates-too-many-server-calls#p23119</guid>
        	        	<description><![CDATA[<p>I&#39;ve try this solution and it works when scroll: 1 or scroll: true</p>
<p>In line 103 of jquery.jqGrid.min.js, on scroll stop call populateVisible()</p>
<p><span style="color: #ff0000;">changed:</span>&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2197' value='Select Code' data-codeid='sfcode2197' /></p>
<div class='sfcode' id='sfcode2197'>
<p>.scroll(e.scrollGrid)</p>
</div>
<p><span style="color: #ff0000;">replace with:</span>&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit483' value='Select Code' data-codeid='sfcode483' /></p>
<div class='sfcode' id='sfcode483'>
<p>.bind(&#39;scrollstart&#39;,function(){}).bind(&#39;scrollstop&#39;,function(e){a.grid.populateVisible();})<span id=&#34;_marker&#34;>&#160;</span><span style=&#34;font-size: x-small; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; font-family: Courier New;&#34;>.bind(</span></span><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;>&#39;scrollstart&#39;</span></span></span><span style=&#34;font-size: x-small; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; font-family: Courier New;&#34;>,</span></span><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;>function</span></span></span><span style=&#34;font-size: x-small; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; font-family: Courier New;&#34;>(){}).bind(</span></span><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #800000; font-family: Courier New;&#34;>&#39;scrollstop&#39;</span></span></span><span style=&#34;font-size: x-small; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; font-family: Courier New;&#34;>,</span></span><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; color: #0000ff; font-family: Courier New;&#34;>function</span></span></span><span style=&#34;font-size: x-small; font-family: Courier New;&#34;><span style=&#34;font-size: x-small; font-family: Courier New;&#34;>(e){a.grid.populateVisible();})</span></span></p>
</div>
<p><span style="font-size: x-small; font-family: Courier New;"><span style="font-size: x-small; font-family: Courier New;">&#160;</span></span></p>
<p>include scroll start and stop jQuery plug-in from <a href="http://james.padolsey.com/javascript/special-scroll-events-for-jquery/" rel="nofollow" target="_blank"><a href="http://james.padolsey.com/java" rel="nofollow">http://james.padolsey.com/java</a>.....or-jquery/</a></p>
<p>As for scroll: true, on scroll stop all page callbacks are executed at the same time.</p>
<p>Hope this feature gets included in&#160;future releases.</p>
]]></description>
        	        	<pubDate>Wed, 11 May 2011 17:47:52 +0300</pubDate>
        </item>
        <item>
        	<title>Ken C. Len on scroll generates too many server calls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-generates-too-many-server-calls#p23101</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-generates-too-many-server-calls#p23101</guid>
        	        	<description><![CDATA[<p>Problem with scrolling is when scroll is set to either 1 or true, every scroll event is executing ajax call even when the scroll bar is dragged all the way to the end.&#160;This generates alot of traffic back to the server.</p>
<p>Is there any way to make the ajax call [populateVisible()]&#160;when the scroll stops (once only)?</p>
]]></description>
        	        	<pubDate>Tue, 10 May 2011 22:04:57 +0300</pubDate>
        </item>
</channel>
</rss>