<?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: Controlling grid pagination and selection from non-grid controls</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls</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/controlling-grid-pagination-and-selection-from-non-grid-controls/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Controlling grid pagination and selection from non-grid controls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4841</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4841</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this. I think it is a very clear and simple way.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 23 Feb 2009 09:40:42 +0200</pubDate>
        </item>
        <item>
        	<title>hpinsley on Controlling grid pagination and selection from non-grid controls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4828</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4828</guid>
        	        	<description><![CDATA[<p>Thanks Tony.&#160; I think I solved the "what is the selected row in the grid" by getting the array of row ids and then finding the selected one in the list.&#160; I&#39;m using this code now.&#160; I&#39;m just wondering if there is an easier (buillt in way), or is this the way to go?&#160; (I&#39;m not sure about the form editing option you suggested).</p>
<p>function NextDoc() {</p>
<p>&#160;&#160;&#160; var DocumentIds = $("#list").getDataIDs();<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; if (DocumentIds.length &#62; 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var selrow = $("#list").getGridParam("selrow");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var index = DocumentIds.indexOf(selrow);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ((index &#62;= 0) &#38;&#38; (index &#60; (DocumentIds.length - 1))) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Advance the row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var NewDocumentId = DocumentIds[++index];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#list").setSelection(NewDocumentId);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //See if it is on the last row&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (index == (DocumentIds.length - 1)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Advance the page<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var page = $("#list").getGridParam("page");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page = page + 1;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#list").setGridParam({ "page": page });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#list").trigger("reloadGrid");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }<br />}</p>
]]></description>
        	        	<pubDate>Mon, 23 Feb 2009 00:17:12 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Controlling grid pagination and selection from non-grid controls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4782</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4782</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can easy make a button&#160; for the next or prev record, but it is difficult to handle wher you are. You can maybe try form editing, scrollrows option and hide the grid when you are in edit mode - beforeShowForm event.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 03:02:06 +0200</pubDate>
        </item>
        <item>
        	<title>hpinsley on Controlling grid pagination and selection from non-grid controls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4743</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/controlling-grid-pagination-and-selection-from-non-grid-controls#p4743</guid>
        	        	<description><![CDATA[<p>I&#39;m buiding an app where the selected item in the grid, when clicked, brings up a detail section (I hide the grid and show a div containing the detail).&#160; On this section, I&#39;d like to be able to navigate forward and backward on the matching rows in the grid (while it is hidden) using navigation buttons in the detail section, and display in the visibile detail section the details of the newly selected row.&#160; Additionally, if I&#39;m on the last row in the grid and the user clicks the navigate forward button on the detail section, I&#39;d like to cause the grid to move to the next page.&#160; The idea is that if I then switch the display back to the grid, it will have the selected row corresponding to the row last displayed in the detail section.</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 09:32:02 +0200</pubDate>
        </item>
</channel>
</rss>