ESRI.ArcGIS.ADF.Web.UI.WebControls
BuddyControl Property
See Also 
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) 
<PersistenceModeAttribute()>
<NotifyParentPropertyAttribute(True)>
<ResCategoryAttribute("Buddy Controls")>
<ResDescriptionAttribute("The control that will display the list of tasks on the page.")>
<DefaultValueAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
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# 
[PersistenceModeAttribute()]
[NotifyParentPropertyAttribute(true)]
[ResCategoryAttribute("Buddy Controls")]
[ResDescriptionAttribute("The control that will display the list of tasks on the page.")]
[DefaultValueAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
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 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.

See Also

© 2010 All Rights Reserved.