This adapter renders the
System.Web.UI.MobileControls.ObjectList control to
WML over several screens. The list is initially rendered as a select
list, and the property or field specified by
System.Web.UI.MobileControls.ObjectList.LabelItem
is displayed for each item. The user can select the item, and view a
menu of related commands or a list of additional fields for the item.
public class WmlObjectListAdapter : WmlControlAdapter {
// Public Constructors
public WmlObjectListAdapter( );
// Protected Instance Properties
protected ObjectList Control{get; }
// Public Instance Methods
public override void CreateTemplatedUI(bool doDataBind); // overrides ControlAdapter
public override bool HandlePostBackEvent(string eventArgument); // overrides ControlAdapter
public override void OnPreRender(EventArgs e); // overrides ControlAdapter
public override void Render(WmlMobileTextWriter writer); // overrides WmlControlAdapter
// Protected Instance Methods
protected bool HasCommands( );
protected bool HasDefaultCommand( );
protected bool HasItemDetails( );
protected bool OnlyHasDefaultCommand( );
protected virtual void RenderItemDetails(WmlMobileTextWriter writer,
System.Web.UI.MobileControls.ObjectListItem item);
protected virtual void RenderItemMenu(WmlMobileTextWriter writer,
System.Web.UI.MobileControls.ObjectListItem item);
protected virtual void RenderItemsList(WmlMobileTextWriter writer);
protected virtual bool ShouldRenderAsTable( );
}