Check documentation for the latest version of dhtmlxSuite Scheduler Specific HowTos DHTMLX Docs

Scheduler Specific HowTos

How can I load options list from server?

Options' lists can be added to scheduler by dhtmlxOptions connector. All you need to do is:

  • to create connectors
  • to integrate them using the dhtmlxSchedulerConnector.AddOptionsConnector method
public override IdhtmlxConnector CreateConnector(HttpContext context)
{
  var connector = new dhtmlxSchedulerConnector(
    "Events",
    "EventID",
    dhtmlxDatabaseAdapterType.SqlServer2005,
    ConfigurationManager.ConnectionStrings["SamplesDatabase"].ConnectionString,
    "FromDate",
    "ToDate",
    "Subject as text, Details as details, Tags"
  );
  dhtmlxOptionsConnector optionsConnector = new dhtmlxOptionsConnector(
    "types", 
    "typeid",
    connector.Request.Adapter, 
    "name"
  );
   connector.AddOptionsConnector("type", optionsConnector);
   return connector;
}
Back to top