<?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: Go to different page, when option scroll is true</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/go-to-different-page-when-option-scroll-is-true</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/go-to-different-page-when-option-scroll-is-true/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dembskoi on Go to different page, when option scroll is true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/go-to-different-page-when-option-scroll-is-true#p29101</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/go-to-different-page-when-option-scroll-is-true#p29101</guid>
        	        	<description><![CDATA[<p>Hi guys!</p>
<p>Thank you for your plugin, it is awesome!</p>
<p>I&#39;ve used the following configuration:</p>
</p>
<blockquote>
<p>&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160; type: "POST",<br />&#160;&#160;&#160;&#160;&#160; url: "table_columns",<br />&#160;&#160;&#160;&#160;&#160; dataType: "json",<br />&#160;&#160;&#160;&#160;&#160; data: { button: $(&#39;#button_val&#39;).val() },<br />&#160;&#160;&#160;&#160;&#160; success: function(result) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var colN = result.colNames;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var colM = result.colModel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#data_table").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;data_table&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData: { button: function() { return $(&#39;#button_val&#39;).val(); }&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scroll: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: colN,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: colM,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#data_table_navi&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 100,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [100, 200, 300],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortable: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: $(&#39;.inner-middle-center&#39;).height() &#8211; 75,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:"Any table name",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function(xhr,status,error){ alert(status); }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; })<br />&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160; error: function(x, e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(x.readyState + " "+ x.status +" "+ e.msg);<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; setTimeout(function () { $("#data_table").jqGrid(&#39;setGridParam&#39;,{ datatype: &#39;json&#39; }); }, 50);</p>
</blockquote>
<p>scroll option sets to 1, but I need get an additional mechanizm to switch between pages.</p>
<p>I&#39;ve tried to realize the following feature:</p>
<p>&#60;button onClick="grid = $(&#39;#data_table&#39;); grid.setGridParam({ page: $(&#39;#temp&#39;).val() }); grid.trigger(&#39;reloadGrid&#39;); "&#62;Test Button&#60;/button&#62;<br />&#60;input id=&#39;temp&#39;&#62;&#60;/input&#62;</p>
<p>But it works correctly only first once. </p>
<p>I&#39;ll be glad of any help, thanks.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 04 Jul 2013 14:25:20 +0300</pubDate>
        </item>
</channel>
</rss>