I have in my database days, which are not buisness dates(sundays, holidays).
I want to mark this days in red, in the date picker.
How can I do it?
I dont manage to change the visiblemonth.
I added a hiddent variable.
In the code behinde I set it
CalendarVisibleMonth.Value =Convert.ToString( new DateTime(2011, 4, 1));
on the javascript function
WebMonthCalendar1_Initialize
Hello drpoalim,You can always take a look in our online help at the following address - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/ASPNET_AJAX_CSOM.html .For the DatePicker and WebMonthCalendar please refer to the following links:http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebTextEditor~Infragistics.Web.UI.WebDatePicker_members.htmlhttp://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebMonthCalendar~Infragistics.Web.UI.WebMonthCalendar_members.html
How do I know which javascript functions I have for each control?
For example, which function sets the month of the mothcalendar control?
Where are this definitions of the controls?
Hello drpoalim,First of all you are handling two different events with one handler which is extremely bad practice. Please create a new handler for every single event you are facing. If you don’t want to have duplicate code, put it in separate function and call it every time when necessary. The issue you are facing is due to the update panel. Every time the update panel updates its content initialize event is invoked of all the components inside it. This means that if you invoke update on every month changed it will initialize again the WebMonthCalendar. The calendar is initialized always with the current month. As a suggestion I would advise you to put a hidden field in which to keep the new date after changing the month and to set the month in which calendar should be opened in initialize event. I will not implement this scenario due to our support policy in which it is written that we do not implement custom scenarios and we do not create custom samples - http://es.infragistics.com/support/policies.aspx#SupportPolicies
Thanks.
Now it works.
I want to apply the same solution for VisibleMonthChanged.
I added the lines
VisibleMonthChanged="WebDatePicker1_CalendarOpening
on the monthcalendar client events.
It seems to work.
The problem is, that when the user changes the month, say from march to april,
on the post back, it reopens again on march, and not on april.
How can I solve this?