﻿<?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 update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-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 update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 11 Mar 2010 22:04:35 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;br /&gt;&lt;/pre&gt;
&lt;p&gt;You could try to use the SetTimeOut javascript function for the GoToPage call in order to delay the function execution in the AfterResponseProcess. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 11 Mar 2010 16:53:58 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;I have 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 to reset pageIndex to  1?&lt;/p&gt;
&lt;p&gt;I try to use this function&lt;span style="font-size: 13px"&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;&amp;nbsp; </description></item><item><title>How to update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 11 Mar 2010 16:53:56 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;I have 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 to reset pageIndex to  1?&lt;/p&gt;
&lt;p&gt;I try to use this function&lt;span style="font-size: 13px"&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;&amp;nbsp;</description></item><item><title>How to update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 11 Mar 2010 16:53:54 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;I have 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 to reset pageIndex to  1?&lt;/p&gt;
&lt;p&gt;I try to use this function&lt;span style="font-size: 13px"&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; WG50Engine.ExecuteFlyPostback("GWG_GeneGrid","PagingTo",1);&lt;/p&gt;</description></item><item><title>How to update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 18 Feb 2010 23:26:32 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>In the latest builf of WebGrid 7, build 401, a new server side function SetCurrentPageIndex has been added to the WebGrid. You could try setting the first page in the server side.&lt;br /&gt;&lt;br /&gt;I am having trouble replicating the issue in my environment, do you mind elaborating the technique you used on setting the WebGrid data using query #1 and query #2, did you change the WebGrid datasource?&lt;br /&gt;&lt;br /&gt;If possible, could you send us a simple project to replicate the issue? &lt;br /&gt;&lt;br /&gt;</description></item><item><title>How to update pager in a grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-update-pager-in-a-grid/</link><pubDate>Thu, 18 Feb 2010 00:34:15 GMT</pubDate><dc:creator>NK1958</dc:creator><description>&lt;p&gt;First question: I have custom pager on a grid which retrieve 100 records per page. First query has 2200 records. It display 22 pages. Second query has 1100 records. So it must display 11 pages, but it continues to display 22 pages in a pager dropdown (see attachment). How to refresh pager menu.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Second question: When I do new filtered query I going to the same page on a grid. Example, if I am on page 8 and do new query than I coming to the same page 8. I need to come to the page 1 with each new query.  How to use    &lt;span style="font-size: 13px"&gt;&lt;strong&gt;grid.GotoFirstPage()&lt;/strong&gt; function. If I use it from&amp;nbsp; &lt;span style="font-size: 13px"&gt;WebGrid_OnAfterResponseProcess() function then everythin freeze. Please provide sample code&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;I am waiting for your response, It is very important&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;Thank you very much in advance&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>