Version

TaskSettings Property

Returns a TaskSettings instance which determines whether the user can edit or delete tasks.
Syntax
'Declaration
 
Public ReadOnly Property TaskSettings As Infragistics.Win.UltraWinSchedule.TaskSettings
public Infragistics.Win.UltraWinSchedule.TaskSettings TaskSettings {get;}
Example
This sample code illustrates the way by which you can determine whether your end users can edit or delete tasks, using the TaskSettings object.

Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinGanttView


Private Sub TaskSettings_Load(ByVal sender As Object, ByVal e As EventArgs) Handles TaskSettings.Load

    ' Disable specific editing for all Tasks visible in GanttView control 
    Me.ultraGanttView1.TaskSettings.AllowDelete = Infragistics.Win.DefaultableBoolean.[False] 
    Me.ultraGanttView1.TaskSettings.AllowEditDuration = Infragistics.Win.DefaultableBoolean.[False] 
    Me.ultraGanttView1.TaskSettings.AllowEditDeadline = Infragistics.Win.DefaultableBoolean.[False] 
    
    
    'Allow specific editing for specific Tasks 
    Me.ultraGanttView1.CalendarInfo.Tasks(0).Tasks(0).TaskSettings.AllowEditStartDateTime = Infragistics.Win.DefaultableBoolean.[False] 
        
    Me.ultraGanttView1.CalendarInfo.Tasks(1).Tasks(0).TaskSettings.AllowEditPercentComplete = Infragistics.Win.DefaultableBoolean.[False] 

End Sub
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinGanttView;

private void TaskSettings_Load(object sender, EventArgs e)
{
					// Disable specific editing for all Tasks visible in GanttView control
             this.ultraGanttView1.TaskSettings.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
             this.ultraGanttView1.TaskSettings.AllowEditDuration = Infragistics.Win.DefaultableBoolean.False;
             this.ultraGanttView1.TaskSettings.AllowEditDeadline = Infragistics.Win.DefaultableBoolean.False;
            

            //Allow specific editing for specific Tasks
            this.ultraGanttView1.CalendarInfo.Tasks[0].Tasks[0].TaskSettings.AllowEditStartDateTime = Infragistics.Win.DefaultableBoolean.False;
            this.ultraGanttView1.CalendarInfo.Tasks[1].Tasks[0].TaskSettings.AllowEditPercentComplete = Infragistics.Win.DefaultableBoolean.False;
	
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also