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

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

3 Answers 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 03 Sep 2014, 01:20 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 05 Sep 2014, 07:23 AM
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!
 
0
Paul
Top achievements
Rank 1
answered on 05 Sep 2014, 08:28 AM
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.
0
Kiril Nikolov
Telerik team
answered on 05 Sep 2014, 10:13 AM
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!
 
Tags
Scheduler
Asked by
Paul
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Paul
Top achievements
Rank 1
Share this question
or