Sunday, March 11, 2012

CalendarExtender loses css when popping up inside Wizard Control

Does it work correctly for you without the UpdatePanel?

I'm using the Calendar in an UpdatePanel with no issues... Perhaps you have some sort of css style overriding the default styles (e.g. you have something set for all SPAN tags)? Try using something like FireBug for Firefox to see the styles being applied...

-Damien


I checked all my styles and nothign was affecting it. I did however, put another calendar control and textbox on the same page, outside the updatepanel, and it worked. It seems as though the styles for the calendar control, that are in the updatepanel, are not loading when the page renders. I have several updatepanels inside a wizard control and several calendar controls inside the update panels. Is there a way to force the calendar control styles to load when the page loads?


I had the same problem, I never figured out what was going own. I just stuck another calendar and extender outside the update panel and set visible to false. The problem is weird cause I see the calendar but the days are way to the right.

I did the exact same thing and it works perfectly now. It's like the script for the calendar control doesn't load and by adding another extender (making visible=false) fills in that void. Not a good alternative to settle for, but at least it works I guess. Until I can go back and try to figure it out, I'll settle for it for now.

No comments:

Post a Comment