Can we have task dependencies in resource view

Hi, I am currently evaluating the WPF gantt control. The view I would be after is the resource view (ie the left hand list has resources rather than tasks).

In the non resource view, I see we can have dependencies, and that we have a Predecessor property on the Task objects.

In the resource view, it looks like (from the sample) we use the Item object (for both the resources, eg person, and for the tasks themselves), and I don't see any Predecessor property in here.

Does this mean we don't don't have support for dependencies when using this resource view, or is there some other way of doing this?

Thanks in advance for any help!

5 Replies

SG Sridharan Gajendran Syncfusion Team November 16, 2017 10:06 AM UTC

Hi Peter, 
  
Thanks for contacting Syncfusion Support.  
  
Please confirm us whether your requirement is to establish relationship between inline items as shown in the below figure. So that we can assist you with a better solution.  
  
  


 
Regards,  
Sridharan  



PC Peter Chapman November 17, 2017 12:39 AM UTC

Hi Sridharan , yes that is exactly was I was enquiring about. 

Thanks for that.

Best regards, Pete.


SG Sridharan Gajendran Syncfusion Team November 17, 2017 06:32 AM UTC

Hi Peter,   
   
Thanks for the update.   
   
Currently we don’t support to establish relationship between two inline nodes in resource view, we have already considered your requirement as a feature request and it will be included in any of our upcoming release.   
   
Thanks,   
Sridharan   



MS Michal Siedlecki January 27, 2019 11:25 PM UTC

I also need this feature.
I'm creating an application for scheduling production orders. 
I already have a ready optimization algorithm and I need a solution that allows me to display the schedule.

Regards,  
Michal Siedlecki


MK Muneesh Kumar G Syncfusion Team January 29, 2019 09:38 AM UTC

Hi Michal Siedlecki, 
 
Thanks for your update. Please find the solution below.  
 
Query: “I also need this feature. 
 
As we mentioned in our previous update, At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented.

Query: “I
need a solution that allows me to display the schedule

We have prepared a sample for the Gantt control and displaying the items by using Model and ViewModel. Please check the sample from the following link

Screenshot


CodeSnippet:

 
MainWindow.Xaml

<
Window>
<
Grid>
<
gantt:GanttControl x:Name="Gantt" 
                                ItemsSource="{Binding TeamDetails}" 
                                ShowDateWithTime="True" 
                                ShowNonWorkingHoursBackground="False" 
                                ShowChartLines="False"                                 
                                VisualStyle="Metro"> 
 
            <gantt:GanttControl.DataContext> 
                <local:ViewModel/> 
            </gantt:GanttControl.DataContext> 
            <gantt:GanttControl.TaskAttributeMapping> 
                <gantt:TaskAttributeMapping TaskNameMapping="Name" 
                                                StartDateMapping="StartDate"  
                                                ChildMapping="SubItems" 
                                                FinishDateMapping="FinishDate" 
                                                ProgressMapping="Progress" 
                                                InLineTaskMapping="InLineItems"/> 
            </gantt:GanttControl.TaskAttributeMapping> 
        </gantt:GanttControl>
</
Grid> 
</Window>

ViewModel.cs

class ViewModel
 
    { 
        private ObservableCollection<Item> _teamDetails; 
 
        /// <summary> 
        /// Initializes a new instance of the <see cref="ViewModel"/> class. 
        /// </summary> 
        public ViewModel() 
        { 
            _teamDetails = GetTeamInfo(); 
        } 
 
        /// <summary> 
        /// Gets or sets the appointment item source. 
        /// </summary> 
        /// <value>The appointment item source.</value> 
        public ObservableCollection<Item> TeamDetails 
        { 
            get 
            { 
                return _teamDetails; 
            } 
            set 
            { 
                _teamDetails = value; 
            } 
        } 
 
 
        /// <summary> 
        /// Gets the team info. 
        /// </summary> 
        /// <returns></returns> 
        public ObservableCollection<Item> GetTeamInfo() 
        { 
            DateTime dtS = DateTime.Today; 
 
            ObservableCollection<Item> teams = new ObservableCollection<Item>(); 
 
            teams.Add(new Item() { Name = "RDU Team" }); 
            Item Person = new Item() { Name = "Robert" }; 
            Person.InLineItems.Add(new Item() { StartDate = new DateTime(2012, 01, 07), FinishDate = new DateTime(2012, 01, 11), Name = "Market Analysis", Progress = 50d }); 
            Person.InLineItems.Add(new Item() { StartDate = new DateTime(2012, 01, 11, 12, 0, 0), FinishDate = new DateTime(2012, 01, 17), Name = "Competitor Analysis", Progress = 20d }); 
            Person.InLineItems.Add(new Item() { StartDate = new DateTime(2012, 01, 17, 12, 0, 0), FinishDate = new DateTime(2012, 01, 21), Name = "Design Spec" }); 
            teams[0].SubItems.Add(Person); 
 
.. 
 
            return teams; 
        } 
    }

 
 

Sample: GanttSample
 

Please check the following UG documentation link as reference for more information about Gantt control

https://help.syncfusion.com/wpf/gantt/getting-started
 
 
Also, please refer our below KB section to get solutions for your questions instantly.  
 


Please let us know if you have any other queries.

Regards,
 
Muneesh Kumar G.  
 


Loader.
Up arrow icon