project; we did not use it before, but extremely familiar with the other
components. It seems this one is missing a few things from the smart Tag, like
data source selection and maybe one day a designer for it. We are a little lost
inside of it and for some crazy reason could not get the examples to work in
VB. Would it be possible to help us with a very simple example that builds the
entire chart from code behind and uses Objects and not a direct connection to
db or a SQL dataset. If possible, please use a FOR loop to insert the Tasks and
relationships. Thank you for the help.
5 Answers, 1 is accepted
I've attached a small sample project demonstrating the proper way to bind the Gantt control from code behind - using a DataTable. Hopefully it will point you in the right direction when implementing your project.
I wanted to clarify a couple of requests:
1. For some reason this seems to be one of the only
controls that we cannot bind to a list of Objects. Is there a plan to be able
to do that in the future.
2. In the dependencies (Task/activity Relationships),
is there a way to add a Lag time between tasks. So the next task would not just
start right after the completion of the task before it. For example, if you
finish painting a wall, you need a lag time of some 16 hours for the paint to dry before you
can start the next task.
I've attached a sample demonstrating the Gantt being bound to a List of objects, complete with Crud operations implemented.
As for the second question, the gantt doesn't implement any auto scheduling, so implementing lag time between tasks is purely up to the developer.