SignalR updated from outside of scheduler

5 posts, 0 answers
  1. Scott
    Scott avatar
    18 posts
    Member since:
    Mar 2015

    Posted 08 Apr 2015 Link to this post

    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

     

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 10 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Scott
    Scott avatar
    18 posts
    Member since:
    Mar 2015

    Posted 13 Apr 2015 in reply to Vladimir Iliev Link to this post

    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.

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 15 Apr 2015 Link to this post

    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.

     
  6. Scott
    Scott avatar
    18 posts
    Member since:
    Mar 2015

    Posted 15 Apr 2015 in reply to Vladimir Iliev Link to this post

    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. :)
Back to Top
UI for ASP.NET MVC is VS 2017 Ready