﻿<?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 - Changing PagingSize Dynamically</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-PagingSize-Dynamically/</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>Changing PagingSize Dynamically</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-PagingSize-Dynamically/</link><pubDate>Fri, 21 May 2010 02:19:49 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;I made a simple sample of WebGrid based on your scenario. In my test page, I put an ASP.Net DropDownList and a WebGrid. The DropDownList items are declared in design-time and the grid is set to have ‘ClassicPaging’ enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;OnChange event of DropDownList, a function that is used to ‘Refresh()’ WebGrid is added. The ‘Refresh’ action will cause WebGrid do FlyPostBack. During FlyPostBack, PrepareDataBinding server side event of WebGrid is invoked. Within this event, the value of ‘PagingSize’ property is set where the value is obtained from the selected item of the DropDownList.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The simple sample is enclosed as attachment. please have the sample tested on your end and let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Changing PagingSize Dynamically</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changing-PagingSize-Dynamically/</link><pubDate>Thu, 20 May 2010 11:12:44 GMT</pubDate><dc:creator>bloveall</dc:creator><description>&lt;p&gt;I have a question about changing the grid's paging size dynamically. Our users want to be able to customize the page size of the grid via a dropdownlist. I'd like to do a SendCustomRequest() and handle the request in &lt;span style="font-size: 13px"&gt;InitializePostBack. Two things that I'm not sure how to do, however, are: (i) passing arguments via the customrequest and (ii), refreshing the grid so that the change takes effect and the rows are updated.&amp;nbsp;In this case, I'd like to pass the value of the user's selection which comes from a dropdownlist. When I make the change to the PagingSize in the InitializePostBack event, it isn't reflected in the grid. The pagesize remains. What is the recommended solution?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Brad&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>