This is a migrated thread and some comments may be shown as answers.

Simple VB example with Objects

5 Answers 149 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 20 Mar 2015, 10:12 PM
We’re evaluating using the Gantt component for a very large
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

Sort by
0
Bozhidar
Telerik team
answered on 23 Mar 2015, 06:45 AM
Hello,

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.

Regards,
Bozhidar
Telerik
0
Sam
Top achievements
Rank 1
answered on 23 Mar 2015, 03:23 PM
Thank you so much, you guys are great, we'll go through it and let you know.

-Sam
0
Sam
Top achievements
Rank 1
answered on 13 Apr 2015, 08:34 PM

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.

Thank you,

-Sam

0
Bozhidar
Telerik team
answered on 15 Apr 2015, 07:02 AM
Hi,

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.

Regards,
Bozhidar
Telerik
0
Sam
Top achievements
Rank 1
answered on 22 Apr 2015, 09:25 PM
Thank you, that was very helpful.
Tags
Gantt
Asked by
Sam
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Sam
Top achievements
Rank 1
Share this question
or