I have a simple WebDatePicker control defined like this. It is sometimes hidden from view and other times needs to be hidden.
later in javascript I am trying to get the status of the calendar like so; when I debug this, ocal is not null.. but getCalendarOpened is always undefined. Do you know what
could be going on?
var ocal = $find("calSearchStatusDate2"); if (ocal != null) { var bIsShowing = new Boolean(false); bIsShowing = ocal.getCalendarOpened();<ig:WebDatePicker ID="calSearchStatusDate2" runat="server"> <Buttons> <CustomButton ImageUrl="~/Images/calendar/calendar.gif" /> </Buttons> </ig:WebDatePicker>
<sigh>
Sometimes I feel like we're the only ones using these API's. I will try your workaround and let you know.
Hi Alan,
Thank you for posting on our forums!
I have created a support case for you with an ID of CAS-111239-G4L1S3. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 134346.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there. Then, you may select the "Development Issues" tab to view details of this development issue.
I have come across a workaround in the meantime. The following javascript code will check if the calendar is currently open.
bIsShowing = ocal.get_calendar() != null;
Please let me know if you have any further questions with this.