To be able to select assignments from a hierarchy of resources when using GanttChartView component of Gantt Chart Hyper Library for HTML5/JavaScript® (or Gantt Chart Web Library for ASP .NET), you may use TreeGrid component from the separate product of DlhSoft Hyper Library.
See this sample application.