This is a migrated thread and some comments may be shown as answers.

SignalR updated from outside of scheduler

4 Answers 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 08 Apr 2015, 08:47 PM

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

Sort by
0
Vladimir Iliev
Telerik team
answered on 10 Apr 2015, 10:16 AM
Hello Scott,

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.

 
0
Scott
Top achievements
Rank 1
answered on 13 Apr 2015, 01:20 PM

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.

0
Vladimir Iliev
Telerik team
answered on 15 Apr 2015, 07:48 AM
Hi Scott,

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.

 
0
Scott
Top achievements
Rank 1
answered on 15 Apr 2015, 01:16 PM
My scripts are up-to-date. I tried making a project to reproduce the issue, but things all worked as expected. It's entirely possible that it's my code causing the issue. :)
Tags
Scheduler
Asked by
Scott
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Scott
Top achievements
Rank 1
Share this question
or