<?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: Pager Not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-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/help/pager-not-working-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rukbat on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24166</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24166</guid>
        	        	<description><![CDATA[<p>jqGrid sends the start record number and number of records&#160;to the server.&#160; You tell the database to give you those rows.&#160; There&#39;s no reason to write paging code yourself, since jqGrid does that for you.&#160; Just use &#39; ... LIMIT &#39;.$start.&#39;, &#39;.$limit, or whatever your particular database uses (some use "limit to x, y rows", some use "limit x,y", some use other syntax).</p>
]]></description>
        	        	<pubDate>Fri, 05 Aug 2011 15:22:02 +0300</pubDate>
        </item>
        <item>
        	<title>CaraK on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24156</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24156</guid>
        	        	<description><![CDATA[<p>the question is how i can send the page number to that server function when i press the next page button?</p>
]]></description>
        	        	<pubDate>Thu, 04 Aug 2011 20:51:59 +0300</pubDate>
        </item>
        <item>
        	<title>Rukbat on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24143</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24143</guid>
        	        	<description><![CDATA[<p>Is the response from the server the second page, or is it the first page over and over?&#160; It sounds like a server-side code problem.&#160; The server gets the row numbers the grid wants, and it&#39;s the responsibility of the server-side code to get those rows from the database.&#160; In most databases that would be the LIMIT clause (in PHP, you&#39;d use $start = $limit*$page &#8211; $limit; for the start and $limit for the liimit.)</p>
]]></description>
        	        	<pubDate>Wed, 03 Aug 2011 17:52:22 +0300</pubDate>
        </item>
        <item>
        	<title>CaraK on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24123</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24123</guid>
        	        	<description><![CDATA[<p>Well I have this code in a page aspx</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2045' value='Select Code' data-codeid='sfcode2045' /></p>
<div class='sfcode' id='sfcode2045'>protected string GridUsuarios(string nm, string cd)<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; iConn = new System.Data.Odbc.OdbcConnection(ConfigurationManager.AppSettings[&#34;ConexionStringMySql&#34;]);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; string SQL = &#34;SELECT id_realizador, upper(nombre), cargo, Case cargo When &#39;1&#39; then &#39;SUPERVISOR&#39; When &#39;2&#39; Then &#39;OPERADOR&#39; When &#39;3&#39; Then &#39;TECNICO&#39; When &#39;4&#39; Then &#39;CLIENTE&#39; When &#39;5&#39; Then &#39;SUPERVISOR EXTERNO&#39; When &#39;6&#39; Then &#39;OPERADOR EXTERNO&#39; Else cargo End, lower(e_mail) FROM t_realizadores WHERE 1&#34;;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (nm.Trim() != &#34;&#34;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SQL = SQL + &#34; AND nombre Like &#39;%&#34; + nm.Trim() + &#34;%&#39;&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (cd.Trim() != &#34;0&#34;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SQL = SQL + &#34; AND cargo = &#39;&#34; + cd.Trim() + &#34;&#39;&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; SQL = SQL + &#34; Order By id_realizador&#34;;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; iConn.Open();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; oDataSet = new DataSet();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; oAdapter = new OdbcDataAdapter(SQL, (OdbcConnection)iConn);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; oAdapter.Fill(oDataSet);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; iConn.Close();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; List&#60;TraeUsuarios&#62; Listado = new List&#60;TraeUsuarios&#62;();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (int i = 0; i &#60; oDataSet.Tables[0].Rows.Count; i++)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (oDataSet.Tables[0].Rows[i].ItemArray[1].ToString().Trim() != &#34;&#34;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Listado.Add(new TraeUsuarios { Id = Convert.ToInt32(oDataSet.Tables[0].Rows[i].ItemArray[0].ToString().Trim()), Nombre = oDataSet.Tables[0].Rows[i].ItemArray[1].ToString().Trim(), CargoId = oDataSet.Tables[0].Rows[i].ItemArray[2].ToString().Trim(), Cargo = oDataSet.Tables[0].Rows[i].ItemArray[3].ToString().Trim(), Email = oDataSet.Tables[0].Rows[i].ItemArray[4].ToString().Trim() });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return GridUsuariosDatos(((Listado.Count) / 10) + 1, 1, Listado.Count, Listado);<br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; public string GridUsuariosDatos(int noOfPages, int startPage, int noOfRecords, List&#60;TraeUsuarios&#62; list)<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gridData = new<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page = startPage,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total = noOfPages,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records = noOfRecords,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rows = list,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var jsonSerializer = new JavaScriptSerializer();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return jsonSerializer.Serialize(gridData);<br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; public class TraeUsuarios<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public TraeUsuarios()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Id = 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Nombre = string.Empty;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; CargoId = string.Empty;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cargo = string.Empty;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Email = string.Empty;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public int Id { get; set; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string Nombre { get; set; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string CargoId { get; set; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string Cargo { get; set; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string Email { get; set; }<br />&#160;&#160;&#160; }</p>
</div>
<p>And This in the page that i show the grid</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3043' value='Select Code' data-codeid='sfcode3043' /></p>
<div class='sfcode' id='sfcode3043'>jQuery(&#34;#grillausers&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;FetchGrillas.aspx?pvu=GU&#38;nm=&#38;cd=0&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Nombre&#39;, &#39;CargoId&#39;, &#39;Cargo&#39;, &#39;Email&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Id&#39;, index: &#39;Id&#39;, width: 20, editable: false, sortable: false, editoptions: { readonly: true, size: 5} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Nombre&#39;, index: &#39;Nombre&#39;, width: 250, align: &#34;left&#34;, editable: false, sortable: false, size: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;CargoId&#39;, index: &#39;CargoId&#39;, width: 50, align: &#39;left&#39;, editable: false, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Cargo&#39;, index: &#39;Cargo&#39;, width: 150, align: &#39;left&#39;, editable: false, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Email&#39;, index: &#39;Email&#39;, width: 300, align: &#39;left&#39;, editable: false, sortable: false }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#paginaciongrilla&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;Id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#34;desc&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: { repeatitems: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Usuarios&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , height: 255<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , onSelectRow: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = jQuery(&#34;#grillausers&#34;).jqGrid(&#39;getGridParam&#39;, &#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ret = jQuery(&#34;#grillausers&#34;).jqGrid(&#39;getRowData&#39;, id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(ret.Id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</div>
<p>But when i press the next page button i alway return the first page 🙁</p>
</p>
<p>Please Help 😛</p>
]]></description>
        	        	<pubDate>Tue, 02 Aug 2011 00:40:37 +0300</pubDate>
        </item>
        <item>
        	<title>CaraK on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24122</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24122</guid>
        	        	<description><![CDATA[<p>I still with this problem, the pager don&#39;t work. I can see 3 pages but when i press the next page the grid stay in page 1 <img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
</p>
<p>Help</p>
]]></description>
        	        	<pubDate>Mon, 01 Aug 2011 22:11:06 +0300</pubDate>
        </item>
        <item>
        	<title>CaraK on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24039</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p24039</guid>
        	        	<description><![CDATA[<p>Hi I had the same problem. Could you resolve this issue?</p>
]]></description>
        	        	<pubDate>Fri, 22 Jul 2011 19:18:03 +0300</pubDate>
        </item>
        <item>
        	<title>bhogsett on Pager Not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p22333</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-1#p22333</guid>
        	        	<description><![CDATA[<p>My grid loads data, sorts the data, but will not page.&#160; When the page button is clicked the "Loading" message appers briefly but the data does not change.&#160; The same result, if I manualy change the page number.</p>
</p>
<p>In firebug, I can see the request from jQgrid and the response from the server.&#160; The response is properly formatted jSon.</p>
</p>
<p>Here is my html:</p>
</p>
<p>&#60;script type="text/javascript"&#62;<br />$(document).ready(function(){</p>
<p>&#160;<br />&#160;jQuery("#wdData").jqGrid({ <br />&#160;&#160; &#160;url:&#39;../testJson.php?q=2&#39;, <br />&#160;&#160; &#160;datatype: "json", <br />&#160;&#160; &#160;colNames:[&#39;ID&#39;,&#39;Item&#39;, &#39;Value&#39;], <br />&#160;&#160; &#160;colModel:[ <br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55, hidden: true }, <br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;item&#39;,index:&#39;item&#39;, width:490, sortable: true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;value&#39;,index:&#39;value&#39;, width:300}], <br />&#160;&#160; &#160;rowNum:20, <br />&#160;&#160; &#160;rowList:[10,20,30,40], <br />&#160;&#160; &#160;pager: &#39;#pager2&#39;, <br />&#160;&#160; &#160;sortname: &#39;item&#39;, <br />&#160;&#160; &#160;viewrecords: true, <br />&#160;&#160; &#160;sortorder: "desc", <br />&#160;&#160; &#160;caption:"Weather Display TestTags--Json",<br />&#160;&#160;&#160; width:600,<br />&#160;&#160;&#160; height:800<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;});<br />&#160;&#160; &#160;jQuery("#wdData").jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:false}); <br />&#160;&#160; &#160;</p>
<p>}); </p>
<p>&#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;div id ="content"&#62;&#60;table id="wdData"&#62;&#60;/table&#62;&#60;div id="pager2"&#62;&#60;/div&#62; &#60;/div&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>The page itself is at:&#160; <a href="http://billhogsett.com/wd/wd2/wd-JQGrid/testJSon2.html" rel="nofollow" target="_blank">http://billhogsett.com/wd/wd2/wd-JQGrid/testJSon2.html</a></p>
<p>Can someone point me to the error of my ways?</p>
<p>Thanks!</p>
</p>
<p>Bill</p>
]]></description>
        	        	<pubDate>Mon, 07 Mar 2011 19:25:56 +0200</pubDate>
        </item>
</channel>
</rss>