﻿<?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 - set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</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>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Tue, 22 Mar 2011 23:24:35 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt; mso-fareast-font-family: simsun; mso-themecolor: text2; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;Should you need further assistance or run into any technical problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Tue, 22 Mar 2011 10:46:15 GMT</pubDate><dc:creator>dwh168</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;David&lt;br /&gt;&lt;/p&gt;</description></item><item><title>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Sun, 20 Mar 2011 22:46:06 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;There is no native way to set the page to a specific page number on the server-side code, but you might want to try this workaround.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;First, add an ASP.NET HiddenField control, let’s say HiddenField1, into the page. Set the value of HiddenField1 in the Page_Load server-side event as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void Page_Load(object sender, EventArgs e)
{
    HiddenField1.Value = "3";
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Modify the “GotoPage3” JavaScript function into the following.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;window.onload = function () {
    var WebGrid1 = ISGetObject("WebGrid1");
    var page = document.getElementById("HiddenField1").value;

    WebGrid1.GotoPage(page);

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The modified JavaScript function will be executed on window on load. It will get the value of the HiddenField1 control and navigate WebGrid to the specified page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Fri, 18 Mar 2011 10:17:43 GMT</pubDate><dc:creator>dwh168</dc:creator><description>&lt;p&gt;But can we do this on the server side code?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=""&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Thu, 17 Mar 2011 21:55:56 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to add following JavaScript function (in OnAfterInitialize client-side event of WebGrid or on window on load) in order to set the default page to page 3.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: #000000; font-size: 9pt"&gt;GotoPage3() {
    var WebGrid1 = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebGrid1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);
            
    WebGrid1.GotoPage(3);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt; color: blue;"&gt;return true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #000000; font-size: 9pt"&gt;;
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The GotoPage3 function utilizes GotoPage(n) method, where n is integer as the number of targeted page. The method switches to specific page of the data in WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>set default paging to 3</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-default-paging-to-3/</link><pubDate>Thu, 17 Mar 2011 17:12:30 GMT</pubDate><dc:creator>dwh168</dc:creator><description>&lt;p&gt;I am working on Webgrid and it has 1000 rows. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I set the paging size = 100&lt;/p&gt;
&lt;p&gt;I want to know, can I set the default paging page to 3,  which is display rows from 301-400 in stead of display rows from 1-100  every time?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;David&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>