
PagerStyle | 777
MobileControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
PagedControl
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1, disposable
abstract class
The PagedControl class defines the basic functionality for controls that use internal pagi-
nation, and can divide their content over multiple pages. These includes the List,
LiteralText, ObjectList, and TextView controls, all of which derive from this class. To create a
custom control that supports internal pagination, derive it from PagedControl. Override
the ItemWeight property so that it returns the approximate weight of an individual item
in the control. (The default weight is 100, which corresponds to a single line on the
device using the default unit system.) Then, when rendering the control’s output, call
the FirstVisibleItemIndex( ) method, which will tell you the first item to render, and the
VisibleItemCount( ) method to determine how many items to render. Your paged control
will automatically fire the LoadItems event as needed.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
MobileControl(System.Web.UI.IAttributeAccessor) ➝ PagedControl
Subclasses
List, LiteralText, ObjectList, TextView
PagerStyle
System.Web.UI.MobileControls ...