HtmlObjectListAdapter

HtmlObjectListAdapter.NET 1.1

System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)class

This adapter renders the System.Web.UI.MobileControls.ObjectList control to HTML. The list can be rendered in one of two basic formats. If you have not set any System.Web.UI.MobileControls.ObjectList.TableFields, the list is rendered as a table with the property or field specified by System.Web.UI.MobileControls.ObjectList.LabelItem displayed for each item. The user can view a menu of related commands and a list of additional fields for the item by clicking a "More" link next to the item. Alternatively, if you have set one or more System.Web.UI.MobileControls.ObjectList.TableFields, these will be used to create a table for each item, which will be shown instead of the simple list.

public class HtmlObjectListAdapter : HtmlControlAdapter { // Public Constructors    public HtmlObjectListAdapter( ); // 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 OnInit(EventArgs e); // overrides ControlAdapter    public override void OnPreRender(EventArgs e); // overrides ControlAdapter    public override void Render(HtmlMobileTextWriter writer); // overrides HtmlControlAdapter // Protected Instance Methods    protected bool HasCommands( );    protected bool HasDefaultCommand( );    protected bool HasItemDetails( );    protected bool OnlyHasDefaultCommand( );    protected virtual void RenderItemDetails(HtmlMobileTextWriter writer,          System.Web.UI.MobileControls.ObjectListItem item);    protected virtual void RenderItemsList(HtmlMobileTextWriter writer);    protected virtual bool ShouldRenderAsTable( ); }

Hierarchy

System.Object ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) HtmlControlAdapter HtmlObjectListAdapter



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net