<?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: Return to current position in grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid</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/return-to-current-position-in-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11475</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11475</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>To do what you want we need to add aditional procedure in jquery.searchFilter.js</p>
<p>Also another possible solution is to trigger clicking&#160; on add button and fill the needed values.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 04 Nov 2009 04:48:10 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11446</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11446</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>I wonder if you can help - as I stated in the previous posts I&#39;m quite close to achieving my goals of saving the search criteria (whether it be to cookies or server side). Essentially when using multisearch: true - i.e. the advanced search. I want to enter the search criteria - save this criteria to cookies, then when I return to the page, retrieve the search criteria from the cookies so that when the grid calls the server for data it passes the correct search parameters to the server. As stated above I have all of this working correctly.&#160; My only problem now is how do I "repopulate" the advanced search form with the search criteria. So when the user clicks on the search button the correct search criteria is in the form. I&#39;ve looked at jquery.searchfilter.js but I&#39;m new to JavaScript and I just don&#39;t know what I should call (should it be the searchFilter function ?). I&#39;ve been struggling with this for a few days now - but getting nowhere - can you help please. When other people have asked about this your response was to take a look at jquery.searchfilter.js.&#160; Would it be possible for you to give a little example of how we might repopulate the advanced search form.</p>
</p>
<p>Regards,</p>
<p>Simon</p>
]]></description>
        	        	<pubDate>Tue, 03 Nov 2009 05:30:52 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11345</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11345</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>From reading another post I now see that my RemoveSearchCriteria should be as follows:</p>
</p>
<p>&#160;&#160;&#160; function RemoveSearchCriteria() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ClearCookies();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { <strong>search </strong>: false} });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { filters : &#8220;&#8221;} });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).trigger(&#8221;reloadGrid&#8221;);<br />&#160;&#160;&#160; }</p>
</p>
<p>instead of</p>
</p>
<p>&#160;&#160;&#160; function RemoveSearchCriteria() {<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160; ClearCookies();<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { <strong>_search </strong>: false} });<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { filters : &#8220;&#8221;} });<br /> &#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).trigger(&#8221;reloadGrid&#8221;);<br /> &#160;&#160;&#160; }</p>
</p>
<p>now I&#39;ve changed that the search criteria is now being cleared correctly. So my only remaining issue is repopulating the advanced search form with the save search criteria. Once again I see in another post in the help forum (save search parameters). That you recommend looking at the jquery.searchfilter.js which is what I will try next.</p>
</p>
<p>Regards,</p>
<p>Simon</p>
]]></description>
        	        	<pubDate>Sat, 31 Oct 2009 05:44:20 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11328</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11328</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I don&#39;t think I need to go to that extreme of exporting/importing the whole grid configuration. But I have now begun to explore your idea of using cookies.</p>
<p>All I&#39;m really trying to do is "remember" the search criteria the user has entered via the popup mutisearch form - which appears to be stored in postData. I am now writing the properties of postData to cookies, so that during the beforeRequest event I check the value of _search. If its true I write the postData properties back to the cookies because I assume the user has just used the popup multisearch form again to issue a new search. The grid then continues to load the data correctly. I&#39;ve also added code to the onPaging event to set the page properties</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ page: parseInt(requestedPage) });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { page: parseInt(requestedPage)} });</p>
<p>and everything works correctly.</p>
</p>
<p>I still have another couple of issues. One thing I need to do is programmtically clear the grid of its search criteria. The first thing I do is remove the cookies. But then I need to reset the properties of postData so the grid will load without applying any search criteria. I&#39;ve been calling RemoveSearchCriteri() but when beforeRequest is fired, postData doesn&#39;t have the values I&#39;ve set.</p>
<p>&#160;&#160;&#160; function RemoveSearchCriteria() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ClearCookies();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { _search : false} });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({ postData: { filters : ""} });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).trigger("reloadGrid");<br />&#160;&#160;&#160; }</p>
</p>
<p>The second problem is that even though the search criteria is being posted to the server correctly, when I click on the search toolbar - the form is not populated with the search criteria - its obviously not looking at postData to populate the form - what does it look for?</p>
</p>
<p>Can you help please ?</p>
</p>
<p>Regards,</p>
<p>Simon</p></p>
]]></description>
        	        	<pubDate>Fri, 30 Oct 2009 12:21:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11279</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11279</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also one possible solution is to use cockies and gridExport method. The grid export method will export the current state in grid as JSON string which can be asy loaded.</p>
<p>I&#39;m not sure that this will do the job, since of cockie limitations - if I remember right it is about 4K.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 30 Oct 2009 06:52:57 +0200</pubDate>
        </item>
        <item>
        	<title>laubegaster on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11237</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11237</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>i have the same problem and found no solution... <img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
</p>
<p>Maik</p>
]]></description>
        	        	<pubDate>Thu, 29 Oct 2009 08:49:33 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Return to current position in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11140</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/return-to-current-position-in-grid#p11140</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Because of the stateless nature of the web, this is a classic problem and I wondered if anyone has a good  (easy <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" />) strategy that could help me. I&#39;ve constructed my jquery grid and it works superbly (thank you Tony for your hard work on jqGrid). One of the columns in my grid has an edit button, which when the user clicks it, it takes the user to a different page where they can edit the selected record. There is of course a link on that page that allows the user back to the page with the grid (or simply pressing the back button). But of course the user is&#160; presented with the grid at page one, and not necessarily on the page of the grid that contains the record they just chose to edit. Yes I realise the options are inline editing, or even form editing on the client side but for reasons I won&#39;t go into these are not good solutions in this case. So is there anything &#8220;built-in&#8221; to jqGrid that will help me preserve the state of grid so I can restore it again on return. The page number should be pretty easy to preserve, but what about search criteria the user may have entered to filter the grid in the first place. I realise this is quiet a broad question but your thoughts would be appreciated.</p>
</p>
<p>Regards,</p>
<p>Simon</p>
</p>
<p>Sorry, I appear to have posted this in the bugs forum when it really should have been in help</p>
]]></description>
        	        	<pubDate>Tue, 27 Oct 2009 07:02:21 +0200</pubDate>
        </item>
</channel>
</rss>