Categories | Question details Back To List | ||
schedulerConnector for RecuurantScheduler How to configure schedulerConnector for Scheduler with recuurance support? How to configure CreateConnector for reccurent scheduler? Answer posted by dhxSupport on Nov 30, 2009 02:05 Please check this article http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:recurring_events#server_side_integration Answer posted on Nov 30, 2009 02:24 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? Answer posted by dhxSupport on Nov 30, 2009 08:48 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. Answer posted by Ravi on Jan 22, 2010 01:50 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. |