<?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: Track selected row</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/track-selected-row</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/track-selected-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Track selected row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/track-selected-row#p13172</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/track-selected-row#p13172</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you are on local mode there is a such option - deselectAfterSort, but if you using server side paging and sorting you can do this using the onSelectRow, gridComplete and setSelection events. Use first to store the selection and the other to make the selection when the user sort or etc.</p>
<p>Note: use the second parameter in onSelectRow to remove the selection if the user deselects it.</p>
<p>See docs.</p>
<p>Best Regrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 18 Dec 2009 20:46:24 +0200</pubDate>
        </item>
        <item>
        	<title>queen3 on Track selected row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/track-selected-row#p13096</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/track-selected-row#p13096</guid>
        	        	<description><![CDATA[<p>This is born out of this question:&#160;<a href="http://stackoverflow.com/questions/1908794/jqgrid-nhibernate-sql-navigate-to-selected-record" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....ted-record</a>.</p>
</p>
<p>I&#39;ve implemented the thing there, and noticed a useful effect: when I preserve the selected id/row, sorting and filtering does not reset the selected row. So when user looks at "ABC" and clicks sorting, jqGrid remembers row id, sends it to the server so that server can find the page where this "ABC" is (or do it itself for local data), and though order of records is changed user still sees the "ABC" - still highlighted - thus user doesn&#39;t lose the context.</p>
</p>
<p>I wonder if tracking of selected row is implemented or can be added to jqGrid, such that,&#160;given that row with #sel_id is selected:</p>
<p>- sorting keep the selected row on screen. I.e. for A-Z it was on first page, sorting Z-A we display the row highlighted on last page (current page is changed)</p>
<p>- same for filtering, if selected row is presented in filtered data</p>
<p>This can be achieved if jqGrid tracks "selected row id" and sends it to the server. There&#39;re problems, however - for example if jqGrid _always_ sends selected id user won&#39;t be able to change page at all 😉</p>
</p>
<p>Just wonder if there&#39;s anything useful in this direction.</p>
]]></description>
        	        	<pubDate>Wed, 16 Dec 2009 22:12:08 +0200</pubDate>
        </item>
</channel>
</rss>