Home Unanswered Active Tags New Question

navigator visibleRangeChangedCallBack calls not working correctly

Hello,

I am using the calendar commandCallBack followed by the navigator's visibleRangeChangedCallBack on afterRender to update the navigator from javascript for dynamically changing the resource from a listbox. The calendar refreshes correctly. But the navigator refreshes correctly only the first time, after that it only works on every alternative call. Every other call clears the navigator completely even though I can clearly see on the server side that the datasource has data at the time of databind.

Please help, I can't figure out why it is clearing the navigator on alternate calls.

Thanks

Asked by Anonymous 1 year ago.
Replies

Update: i checked the data being passed back in the callback using firebug, and the data that is coming back is correct. So the problem is that the navigator is not redrawing itself correctly on some callbacks. Is there a way to force a client side refresh.

Comment posted by Anonymous 1 year ago.

Confirmed.

Even dpn.updateFreeBusy() works every 1 time of 2 calls. Is that can be fixed?

Or can the "update busy days" functionality can be automaticaly included in dpn.select(dt)?

Comment posted by Dmitry 11 months ago.

Addition: I encountered problem when continiously use

dpn.select(dt); dpn.updateFreeBusyDays() // or dpn.visibleRangeChangeCallBack()

you will sometimes receive error __pendingCallbacks[i] is null.

This is a .net bug (see http://www.codeproject.com/KB/aspnet/pendingcallbacks.aspx). So i fyou use a "i" variable for inside loops in "select", "updateBusyDays", "visibleRangleChangeCallback" please use another variable :)

Comment posted by Dmitry 11 months ago.

There was a bug in addClass method. It incorrectly cleared all element classes if the class to be added was already there. It's fixed now in build 2288 (see the sandbox).

The updateFreeBusy() method is now called from select() method so the free/busy highlighting is not lost.

The "__pendingCallbacks[i] is null" error doesn't seems to be directly related to this issue.

Answer posted by Dan Letecky 11 months ago.

Now working. Thanks.

Comment posted by Dmitry 11 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java