Prev | Current Page 654 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"


Table 10-12. IControlAdapter Interface
Members Description
Control Stores a reference to the associated control
CreateTemplatedUI Creates a templated UI when called by base classes
HandlePostBackEvent Returns true if the event is handled
ItemWeight Stores the approximate weight of an item in the associated control
LoadAdapterState Loads the adapter??™s private ViewState
LoadPostData Returns true if the adapter loads posted data
OnInit Called after a form or page initializes
OnLoad Loads data for the control, page, or device adapter
OnPreRender Performs adapter-specific logic prior to rendering
OnUnload Unloads data for the control, page, or device adapter
Page Stores a reference to the page associated with the device adapter
Render Called by the associated control??™s Render method
SaveAdapterState Saves the adapter??™s private ViewState
VisibleWeight Stores the approximate weight of the control in characters
CHAPTER 10 ?–  OTHER S ERVER C ONTROLS 507
?– Note The default unit system in ASP.NET mobile controls is based on a single line equal to 100 units based
on the DefaultWeight static read-only property on the ControlPager class. The default ItemWeight is also
the same value at 100 units.
Device adapters implementing IControlAdapter maintain a reference to a specific control
instance in its Control property.


Pages:
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666