﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to return to the First page on a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-return-to-the-First-page-on-a-grid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to return to the First page on a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-return-to-the-First-page-on-a-grid/</link><pubDate>Thu, 11 Mar 2010 21:58:53 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;We have a GoToPage and GoToFirstPage in the WebGrid 6 client side function in order to set the WebGrid to a certain page in a classic paging scenario. Here is the snippet if you would like to move to the first page, you could use the GoToPage or the GoToFirstPage to achieve the desired result: &lt;/p&gt;&lt;pre&gt;var grid = ISGetObject('WebGrid1');&lt;br /&gt;&lt;br /&gt;grid.GotoPage(1);&lt;br /&gt;grid.GotoFirstPage();&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to return to the First page on a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-return-to-the-First-page-on-a-grid/</link><pubDate>Thu, 11 Mar 2010 17:15:03 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;I have a webgrid version 6.0 with a filters and paging functionality build in.  I am using asp:objectdatasource control to do custom pagination. I also have button on a form which do postback.  My action: &lt;/p&gt;
&lt;p&gt;1. Setup filters on a grid and click a button to get data&lt;/p&gt;
&lt;p&gt;2. Go to page 5 on a grid &lt;/p&gt;
&lt;p&gt;3. Set new filter on a grid and click a button to get data. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I want to be on a page 1, but instead I go to the page 5. Everything is correct I am displaying data for page 5. But after I clicking a button I need to be on a page 1 displaying data for page 1&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What code should I write in  javascript or on server to reset pageIndex to  1?&lt;/p&gt;
&lt;p&gt;Can I use this function. &lt;span style="font-size: 13px"&gt;&amp;nbsp;WG50Engine.ExecuteFlyPostback("myGrid","PagingTo",1);&lt;/span&gt; &lt;/p&gt;


&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>