Home Unanswered Active Tags New Question

DayPilot Internal Rebinding on every Ajax postback

Not sure if this is a bug or just the way its supposed to work.

  • Put the daypilot control in a conditional Ajax update panel
  • Put another postback control (say a button) in a different conditional Ajax Update panel
  • Then fire the button
I would expect nothing to be updated/called for the daypilot control.
However it appears that the daypilot control rebinds itself every time and calls its beforeRender events every time, even though the postback for the button doesn't reference the daypilot control at all.

The fact that the Daypilot is in a conditional update panel means that visually there is no effect, however its actually rebinding itself behind the scenes and trying to run whatever code you may have in the beforerender routines, which seems unneccessary?

I'm not sure what happens to the content of the viewstate.

Have I misunderstood or done something wrong?

Thanks.
Asked by steve65 3 years ago.
Replies
All the beforerender events are called from Render method. The Render method is called by the .NET Framework so I'm not sure if there is something I can do about that.

But I will do some tests and we will see what's going on.
Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

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