search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Internal Rebinding on every Ajax postback

Asked by steve65
16 years ago.
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.
Comment posted by Dan Letecky
16 years ago.
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.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.