Hi,
I am getting “Object reference not set to instance of an object” error.
when trying to run following code with version 1.5.
public override IdhtmlxConnector CreateConnector(HttpContext context)
{
dhtmlxSchedulerConnector connector = new dhtmlxSchedulerConnector(
"Select ScheduleID as id,scheduleTitle as text,Description as details,rec_type,event_length,event_pid,location,Label,ScheduleTypeID,createdBy,ClientId,AllDay,isSendNotification,reminder from advSchedules "
, “ScheduleID”
, dhtmlxDatabaseAdapterType.SqlServer2005
, ConfigurationManager.ConnectionStrings[“AdviserLogicConnectionString”].ConnectionString
, “startDate”
, “endDate”
, “ScheduleID as id, scheduleTitle as text,Description as details,rec_type,event_length,event_pid,location,Label,ScheduleTypeID,createdBy,ClientId,AllDay,isSendNotification,reminder”
);
dhtmlxOptionsConnector optionsConnector = new dhtmlxOptionsConnector(“comScheduleLabels”, “LabelID”, connector.Request.Adapter, “labelDescription”);
connector.AddOptionsConnector(“type”, optionsConnector);
return connector;
}
Note: It will work if pass only table name in constructor first parameter of dhtmlxSchedulerConnector