How to configure schedulerConnector for Scheduler with recuurance support? How to configure CreateConnector for reccurent scheduler?
HI,
I am using dhtmlConnector (.Net Assembly) to have database support with dhtmlxSchedular. So How we can we configure/Write CreateConnector in schedularConnector Class which is inherited from dhtmlxRequestHandler?
In common case CreateConnector for dhtmlxScheduler will look like this:
public override IdhtmlxConnector CreateConnector(HttpContext context)
{
return new dhtmlxSchedulerConnector(
“events” //Table to take events from
, “eventId” //Primary key column name
, dhtmlxDatabaseAdapterType.SqlServer2005
, ConfigurationManager.ConnectionStrings[“SamplesDatabase”].ConnectionString
, “fromDate” //from and to date fields names
, “toDate”
, “text, details” //additional fields that will be mapped to scheduler on the client manually
);
}
Obviously, table and column names “events, eventId, fromDate, toDate, text, details” must be changed to the names used in your database.
Hi,
I have created the Connector as below.
public override IdhtmlxConnector CreateConnector(HttpContext context)
{
return new dhtmlxSchedulerConnector(
“EventsRecurrance”
, “EventID”
, dhtmlxDatabaseAdapterType.SqlServer2005
, ConfigurationManager.ConnectionStrings[“EMRDatabase”].ConnectionString
, “FromDate”
, “ToDate”
, “Subject as text, Details as details, Tags,RecType,EventPID,EventLength”
);
}
But now thr problem is I cant see any values in RecType,EventPID,EventLength columns of the table. Could you please tell me if I am missing anything? Or what needs to be changed so that I can get values in database for the mentioned columns?
Thanks in advance.