search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Connection Error when populating Daypilot scheduler

Asked by B
4 days ago.

Hi

We are using Daypilot MVC Scheduler. The scheduler will refresh using external code every 60 Sec. I am having some JSON Error if the connection drops.

I tried to capture the error and redirect as below

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Backend(string t)
{
try
{
return new Dps().CallBack(this);
}
catch (Exception)
{
return new SchedulerError().CallBack(this);
// return RedirectToAction("Login", "Account"); ;
}
}

class SchedulerError : DayPilotScheduler
{
protected override void OnInit(InitArgs e)
{
UpdateWithMessage("There is a Problem loading the scheduler. Please refresh the page!",CallBackUpdateType.None);
}
}

Any help would be really appriciated.

Thanks
B

No reply yet.
New Reply
This reply is
Your name (optional):