![]() |
|
GTP.NET FAQ 10791Databound links with different types Please note that this article
refers to the GTP.NET Jump to article- 2006-12-15 16:13:00 - Email plexityHide Question Question:Using code: { gantt1.TimeItemLinks.NameInDS_StartKey="start"; gantt1.TimeItemLinks.NameInDS_TargetKey="target"; gantt1.TimeItemLinks.DataSource=currentProject.WorkLinks; } loads the relationships... however type relationship is used one and one, which is installed in property Gantt1.TimeItemLinks.CreationTimeItemLinkStyle... How fasten the type of the relationships to field database? Thank you.
Answer When the links are loaded they will be handled by the gantt1.TimeItemLinks.LinkDataConnect class. This class has events like OnBeforeDSToLink. You can implement this event and change the link type based on the data provided in the arguments (or data you can access having the arguments as a context).
Currently Link Databind is not documented in the help file. The Link Databind is officially release with version 3.0 due soon.
Read this article to get an overview of link-databind http://www.plexityhide.com/GTPNETOverview.htm
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| ? 1999-2006 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |