DayPilot Internal Rebinding on every Ajax postback
Asked by steve65
18 years ago.
18 years ago.
Not sure if this is a bug or just the way its supposed to work.
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.
- 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
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.
DayPilot