<?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: load on scroll bug</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1</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/load-on-scroll-bug-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Tom Kim on load on scroll bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26504</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26504</guid>
        	        	<description><![CDATA[<p>Thank u so much for the advice.</p>
<p>I am having a hard time cause I cant find any entire documents 🙁</p>
<p>Like here&#160;/jqgridwiki/doku.php?id=wiki:methods&#38;s[]=addjsondata&#160;</p>
<p>I&#39;m tryin to find what the 5 parameters are... but cant find any stuffs about that..</p>
<p>And about the ajaxGridOptions.. can&#39;t find the options I can use either...</p>
<p>Is there another page that I can get some full documentation?</p>
<p>Or any other ways for me to find the parameters for those you mentioned</p>
<p>Thank u!</p></p>
]]></description>
        	        	<pubDate>Thu, 03 May 2012 12:29:41 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on load on scroll bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26503</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26503</guid>
        	        	<description><![CDATA[<p>Sorry Tom, but the code which you post is very very bad. You should never use <strong>datatype</strong> as function just to make <strong>$.aja</strong>x request internaly. There are a lot of jqGrid options which allows you to customize request how you as want. You can<strong> ajaxGridOptions</strong> option and <strong>serializeGridData</strong> and <strong>beforeProcessing</strong>&#160;callbacks which allows to modify the data which will be send to the server directly before sending and diractly after receiving the server response and befor the response will be processed by jqGrid. There are additionally many other possibility in form of <strong>jsonReader</strong> and <strong>jsonmap</strong>. You should do only the changes which are required and not change the general kind of processing in jqGrid.</p>
<p>Currenly you use only one from five parameters of <strong>addJSONData</strong>. The usage of other are required if you want to use <strong>scroll</strong> option of jqGrid.</p>
<p>First of all I would recommend you to rewrite your code using <strong>datatype: &#39;json&#39;</strong>. I recommend you to add <strong>gridview: true</strong> option to all your grids additionally. After you will have working code you can consider to use <strong>scroll:1</strong> or <strong>scroll:true</strong> option if it is really required for your application. I personally don&#39;t like the options.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 03 May 2012 11:47:46 +0300</pubDate>
        </item>
        <item>
        	<title>Tom Kim on load on scroll bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26502</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/load-on-scroll-bug-1#p26502</guid>
        	        	<description><![CDATA[<p>Hi I wrote this on help forum few days ago but didnt get any feedbacks...</p>
</p>
<p>And I still think its a bug</p>
</p>
<p>so gonna write here again...</p>
</p>
<p>---------------------------------------</p>
<p>Hi.</p>
<p>I have a jqGrid with load on scroll option on.</p>
<p>This is my code.</p>
</p>
<p>function something(){</p>
<p>$("#mailList").jqGrid({</p>
<p>datatype: getInboxMails,</p>
<p>colNames: [&#39;&#39;, &#39;title&#39;, &#39;sender&#39;, &#39;date&#39;, &#39;Type&#39;, &#39;size&#39;, &#39;&#39;],</p>
<p>colModel: [</p>
<p>{ name: &#39;Custom&#39;, index: &#39;Custom&#39;, width: 40, align: &#39;left&#39;, sortable: false, formatter: inbox_customButton },</p>
<p>{ name: &#39;Title&#39;, index: &#39;Title&#39;, width: 200, align: &#39;left&#39;, formatter: inbox_customTitle },</p>
<p>{ name: &#39;Sender&#39;, index: &#39;Sender&#39;, width: 80, align: &#39;left&#39;, formatter: inbox_customSender },</p>
<p>{ name: &#39;Senddate&#39;, index: &#39;Senddate&#39;, width: 40, align: &#39;center&#39; },</p>
<p>{ name: &#39;RcvType&#39;, index: &#39;RcvType&#39;, width: 20, align: &#39;center&#39;, sortable: false, formatter: inbox_customRcvType },</p>
<p>{ name: &#39;MailSize&#39;, index: &#39;MailSize&#39;, width: 60, align: &#39;left&#39;, sortable: false, formatter: inbox_customMailSize },</p>
<p>{ name: &#39;Docidx&#39;, hidden: true }</p>
<p>],</p>
<p>postData: { filter: &#39;&#39; },</p>
<p>pager: &#39;#mailListPager&#39;,</p>
<p>rowNum: 4,</p>
<p>rowList: [5, 10, 20, 50],</p>
<p>sortname: &#39;Senddate&#39;,</p>
<p>sortorder: "desc",</p>
<p>caption: &#39;&#39;,</p>
<p>scroll: true,</p>
<p>//scrollOffset: 0,</p>
<p>//autowidth: true,</p>
<p>//height: &#39;100%&#39;,</p>
<p>//shrinkToFit: false,</p>
<p>scrollbar: true,</p>
<p>multiselect: true,</p>
<p>toppager: true,</p>
<p>cloneToTop: true,</p>
<p>viewrecords: true,</p>
<p>sortable: true,</p>
<p>jsonReader: {</p>
<p>id: &#39;Id&#39;,</p>
<p>root: function (obj) { return obj.rows },</p>
<p>repeatitems: false,</p>
<p>page: function (obj) { return obj.page },</p>
<p>total: function (obj) { return parseInt(obj.total) },</p>
<p>records: function (obj) { return parseInt(obj.records) }</p>
<p>}</p>
<p>});</p>
<p>//&#8230;&#8230;&#8230;&#8230;&#8230;..other code</p>
<p>}</p>
<p>function getInboxMails(postdata) {</p>
<p>if (flag.gettingInboxMail) { return; }</p>
<p>flag.gettingInboxMail = true;</p>
<p>$.ajax({</p>
<p>url: &#39;/Json/GetInboxMails&#39;,</p>
<p>type: &#39;post&#39;,</p>
<p>data: postdata,</p>
<p>dataType: &#39;json&#39;,</p>
<p>complete: function (jsondata, status) {</p>
<p>if (status == "success") {</p>
<p>flag.gettingInboxMail = false;</p>
<p>var json = $.parseJSON(jsondata.responseText);</p>
<p>if (json.Result != 0) {</p>
<p>alert(json.Message);</p>
<p>return;</p>
<p>}</p>
<p>$("#mailList")[0].addJSONData(json.Data);</p>
<p>if (json.Data.rows.length &#62; 0) {</p>
<p>checkNewMails();</p>
<p>}</p>
<p>}</p>
<p>else {</p>
<p>flag.gettingInboxMail = false;</p>
<p>alert(&#39;Failed to get inbox mails.&#39;);</p>
<p>}</p>
<p>}</p>
<p>});</p>
<p>}</p>
</p>
<p>This is my code.</p>
<p>So my problem is that I am not getting a scroll bar to bind more data.</p>
<p>what i think is.. In the DB, there&#39;s 10 rows of data in total.</p>
<p>So I guess the jqGrid generates the div like</p>
</p>
<p>&#60;div class="ui-jqgrid-bdiv" style="width: 1500px; height:390px;&#62;</p>
<p>&#60;div style="position: relative; height: 340px;&#62;&#8230;.&#60;/div&#62;</p>
</p>
<p>these&#8230; and I am guessing that the second div&#39;s height is sized to how long it will be with all the rows binded&#8230;</p>
<p>and that div will make the scroll of the outer div</p>
<p>but as u can see the outer div is taller than the inner one. So it makes no vertical scroll..</p>
</p>
<p>I tried it with making my browser&#39;s height size small and the scroll appears.</p>
<p>I am going to need a scroll with small number of rows.</p>
<p>Is this a jqGrid bug or am I doing something wrong???</p>
</p>
<p>Please give me some advice.&#160;</p>
<p>Thank u</p>
]]></description>
        	        	<pubDate>Thu, 03 May 2012 04:57:01 +0300</pubDate>
        </item>
</channel>
</rss>