Please start using our more robust New Forum, we have put this old forum in archive mode. Thanks.

Welcome Guest Search | Active Topics | Log In

Tag as favorite
Add/remove sub tasks
#1 Posted : Thursday, May 15, 2014 6:44:20 AM

Posts: 91

What's the recommended way to add and remove sub tasks on-the-fly, just as InsertNewItemAsSiblingBelow works for normal tasks? The implementation you made for us (calling RenderSubTasks() in OnTaskBarLoad) to render sub tasks in GanttControl is quite a hack, so maybe it's not possible at the moment?
Raja - RadiantQ
#2 Posted : Monday, May 19, 2014 9:59:38 AM

Posts: 314


Please refer our "GanttControl or FlexyGantt" topic in our UG to get understand the basic things about Gantt.

In "RecurringTasks", everything should be in sample level. So, you can re-render the recurring tasks if it's updated.

For Example:
// Get the DataSource which need to be add subTasks.
var actView = ganttControl.ActivityViews[index];
var Task = actView.activity.DataSource;
var subTasks = Task.SubTasks;
var subTask = new SubTask();

// Adding subTask to the Task.

// Getting TaskItemControl.
var ganttTaskItemBar = $("td", actView.ChartRow()).data("GanttTaskItemBar");

// Render the SubTasks with the arguments.
RenderSubTasks(Task , ganttTaskItemBar);
Thanks & Regards,
Tag as favorite
Forum Jump  
Please Email for any issues

ugg boots outlet cheap ugg sale ugg boots clearance ugg boots sale ugg boots cheap ugg boots for women uggs for cheap ugg shops cheap ugg boots cheap uggs Official Ugg Outlet ugg Store Buy Cheap UGGs ugg boots uk ugg boots usa ugg Online uggs on sale ugg outlets cheap ugg boot Discount UGG Boots discount uggs