ESRI.ArcGIS.ADF.Web.UI.WebControls
BuddyControl Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskManager Class : BuddyControl Property




The ID of the control that will display the list of tasks on the page.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<ResCategoryAttribute("Buddy Controls")>
<ResDescriptionAttribute("The control that will display the list of tasks on the page.")>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
Public Property BuddyControl As String
Visual Basic (Usage)Copy Code
Dim instance As TaskManager
Dim value As String
 
instance.BuddyControl = value
 
value = instance.BuddyControl
C# 
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[ResCategoryAttribute("Buddy Controls")]
[ResDescriptionAttribute("The control that will display the list of tasks on the page.")]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public string BuddyControl {get; set;}

Remarks

The TaskManager creates a list of tasks added to it, and passes the list to the control specified by BuddyControl. The buddy control displays each task with a hyperlink. Clicking the link displays the task to the user.

The BuddyControl must refer to a type given by GetSupportedBuddyControlTypes(). Currently this returns just System.Web.UI.WebControls.HierarchicalDataBoundControl, of which has been implemented by two ASP.NET Web controls: the Menu control and the TreeView control. In both cases, tasks with the NavigationPath property set will be found by expanding the control items, either in a menu approach or in a tree-view approach.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.