onAfterLightbox not firing

Hi,
I have a custom lightbox, when the user saves, I may add multiple events to the calendar for that day, so I would like to have the scheduler refresh that day. I have the following:

In my controller

m.Scheduler.Lightbox.SetExternalLightbox("Calendar/Attendance/PopupEditControl", 620, 395);

In my cshtml file

        $(document).ready(function () {
            scheduler.attachEvent("onAfterLightbox", function () {
                alert('hi');
                scheduler.updateView();
            });
            scheduler.attachEvent("onLightboxButton", function () {
                alert('hi');
                scheduler.updateView();
            });

        });

Question 1: Why are the events not firing? Is there a different event I should be using?
Question 2: Is there a specific function i can call to have it refresh a single day? I am using the dataprocessor and dynamic loading.

Thanks
Mike

Hello,

Question 1
It is a known bug, the fix will be released in the nearest time(most probably packages on scheduler-net.com and nuget will be updated by the end of the week)

Question 2
Scheduler stores loaded dates in order not to load it multiple times. Currently there is no public api to edit this data, so you’ll have to edit a private property ._loaded in order to reload the previously loaded date:scheduler._loaded["2013-02-05"] = false; scheduler.load("Data?from=2013-02-05&to=2009-02-06");

Question 2
alternatively, you can clear all eventsscheduler.clearAll(); scheduler.load("Data?from=2013-02-05&to=2009-02-06");

Hi,
I got the update and this still doesn’t seem to work. It seems to only happen with a custom lightbox. As a test, if I remove SetExternalLightbox and use the built-in lightbox the events get called.
Thanks
Mike

Hi

               onAfterLightbox not firing at all,how to solve,where to call,please help me

Hi,
please attach a demo so I could reproduce the problem. The demo must be a complete project with all required dlls and database, otherwise I won’t be able to run it