I have a tree timeline scheduler control and I can load data via the ASP.NET connector using two tables. One table contains a list of driver and the other a list of events (or routes) the drivers have to run. In the basic loading it puts all the routes in the same driver row of the timeline view. I need to have each route in its own scheduler row with the driver being the folder level. Any ideas on how to load this data? Here is the code I have now.
Imports System.Web
Imports System.Web.Services
Imports dhtmlxConnectors
Public Class DatabaseConnector
Inherits dhtmlxRequestHandler
Public Overrides Function CreateConnector(ByVal context As HttpContext) As dhtmlxConnectors.IdhtmlxConnector
Dim MyConnector As New dhtmlxSchedulerConnector(
"EVENTS", _
"EVENT_ID", _
dhtmlxDatabaseAdapterType.SqlServer2005, _
ConfigurationManager.ConnectionStrings("ResourceManagement").ConnectionString, _
"[START]", _
"[END]", _
"DRIVER_ID, [ROUTE] as text" _
)
Dim MyOptions As New dhtmlxOptionsConnector(
"DRIVERS",
"DRIVER_ID",
dhtmlxDatabaseAdapterType.SqlServer2005,
ConfigurationManager.ConnectionStrings("ResourceManagement").ConnectionString, _
"[DESCRIPTION]"
)
MyConnector.AddOptionsConnector("sections", MyOptions)
Return MyConnector
End Function
End Class