Acheive - Device Specific Output in MMIT


ITPro Today

May 20, 2004

8 Min Read
ITPro Today logo


Using Microsoft Mobile Internet Toolkit, we can customize the mobile applications to suit the display settings for the different mobile devices. One of the techniques that I like to share is pagination.




How you define pagination?


Pagination is a process of separating the contents of a Mobile web form page into smaller units to target various devices.

Here are some of the properties of the form control that is used to paginate the output of the mobile web forms page.


Property Name

Property Description


Returns the number of pages in a paginated form


Sets or returns the zero-based index of currently displayed page of the paginated form


Sets or returns the style used in the paginated form with the default style set to string



Types of Pagination


Let us now discuss the types of Pagination available.


§          Internal Pagination

§          Custom Pagination


Internal Pagination


Some controls like List, ObjectList, and TextView controls supports automatic pagination of content. All these controls are derived from PagedControl class that provides properties, methods, and events used by the controls for pagination.


Custom  Pagination


Controls that use the Internal pagination also support the Custom Pagination that enables the control to display the content in

smaller chunks.


Here are some of the properties and events used by the Mobile controls that support custom pagination.


Property Name / Event Name

Property / Event Description

ItemCount - Property

Sets or returns the number of items, when the value is set to 0 (Default) implies that custom pagination feature is disabled.

ItemsPerPage – Property

Sets or returns the number of items displayed per page in a paginated form. Default value is set to 0

LoadItems – Event

Event occurs when the custom paginated control requires data to display on device.





Other techniques that is used to Achieve Device –Specific Output in mobile web forms are Style sheets and Template Sets. (Refer MMIT Documentation for More Details)


Happy Programming!!!

Read more about:

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like