Send new event with SignalR


#1

Hi, I’m using a web Form to create an entry to the “Event” table.
Those events are displayed in the DTHMLX Calendar in another view.

Is there a way to push the new “Event” to the “already opened calendar” with Signal R ?

I tried this in my controller after saving event and it did not work :

var hubContext = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext<SchedulerHub>();
hubContext.Clients.All.Send((new SchedulerAjaxData(event)).ToString());

thank you


#2

Hi,
have you checked this article scheduler-net.com/docs/live-update.html ?


#3

Hi,
yes I’have read the article, it work well when using the calendar because the “pushing call to signalR” is in DHTMLX dll

What I want to do is the same but without using DHTMLX dll.