Could I get another SignalR example, where the scheduler hub is called from another controller? Here's my workflow:
1. big screen shows day's schedule
2. user schedules work order from other page
3. after saving change, call Hub.Clients.All.update(updatedItem)
4. big screen scheduler updates
4 Answers, 1 is accepted
Currently we can only provide the following example listed in our documentation:
You can use it as baseline to achieve the desired behavior.
Regards,
Vladimir Iliev
Telerik
See What's Next in App Development. Register for TelerikNEXT.
Thanks Vladimir, I was able to get something together.
I did find an issue. If the Id property is set to a string (rather than an integer), the Scheduler creates a duplicate entry instead of moving the original entry. For example, if I have an appointment on Tuesday at 8AM and send an update from the hub with a new time of 10AM, the scheduler UI shows two appointments, one at 8 and one at 10. If I refresh the page, only the 10AM appointment is shown.
Setting the Id property to an int fixes this. Seems like a bug with how ids are being compared on the client side.
The described issue was fixed in Q1 2014 release - could you please make sure all scripts and styles are updated to the latest official release? If this doesn't help could you please modify the attached demo to reproduce the issue and send it back to us? This would help us pinpoint the reason for current behavior.
Regards,
Vladimir Iliev
Telerik
See What's Next in App Development. Register for TelerikNEXT.