Hi,
If I know the Id of a task (the guid id), how do I find that task and set it to be the ActiveTask on the UltraGanttView?
Normally I'd do a linq statment on the task collection, but I can't find a task collection to get the task from in the gantt, the calendar info or even by going to the underlying grid (as the object type in the grid is internal). I suspect I'm missing something obvious here!
Thanks, Tom
Hello ,
You could use Tasks collection of corresponding UltraCalendarInfo, more information about this collection you will find on the following link:
http://help.infragistics.com/Help/Doc/WinForms/2014.1/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v14.1~Infragistics.Win.UltraWinSchedule.UltraCalendarInfo~Tasks.html
so you could use linq statement like following:
ultraCalendarInfo1.Tasks.FirstOrDefault<Infragistics.Win.UltraWinSchedule.Task>(t => t.Id == yourId);
Please let me know if you have any further questions.
Hi
Sorry, forgot to say I'd tried that - the problem with that collection is that it only contains the top level nodes, so if the task I'm trying to find is a child of one of those tasks the linq statement will return no records. Is there a property that returns the flattened out collection of all tasks and child tasks or do I need to write some soft of recursive routine to walk the tree?