scheduler.dataSource.read() which doesn't close dialogues?

4 posts, 0 answers
  1. Paul
    Paul avatar
    24 posts
    Member since:
    Aug 2013

    Posted 03 Sep 2014 Link to this post

    Hi there,

    I'm developing a multi-user website using the scheduler as one of the key components. The site will allow multiple users to have simultaneous access to creating and view scheduler entries.

    Currently, when the datasource is updated by a user, all machines viewing the datasource will have .read() called in order to refresh the view. Unfortunately, this closes any editor dialogues which is less than ideal.

    Is there anyway to have the scheduler update from the datasource without closing currently open dialogues?

    Cheers, Paul.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 05 Sep 2014 Link to this post

    Hello Paul,

    When dataSource.read() is called the widget will read the data from the remote service and refresh itself, therefore the editors will be closed as the widget is being redrawn. I have tried to find a workaround that will achieve the functionality that you are looking for using the edit and dataBound events, but the problem is that when change is saved, it also calls the dataBound event and there is no way to determine if this was caused by user change and therefore not open the event for editing using the editEvent() method, so I at the current moment I am not able to offer you a viable workaround.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Paul
    Paul avatar
    24 posts
    Member since:
    Aug 2013

    Posted 05 Sep 2014 in reply to Kiril Nikolov Link to this post

    Hi Kiril,

    Thanks for looking for a solution anyway :)

    Maybe I can work around the problem by postponing read() when the user has a dialogue box open - what is the best way to tell if any dialogues are currently open?

    Cheers, Paul.
  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 05 Sep 2014 Link to this post

    Hello Paul,

    You can introduce a global variable, that will hold the edit state of the scheduler and change it based on user activity. Here is the example that I created:

    http://jsbin.com/gacovu/1/edit

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top