how to make the user to select only mondays in the ultrawebdatechooser?
there is prininting mistake,
ClientSideEvents-CalendarValueChanging="_calendarvaluechanging()"
function _calendarvaluechanging()
both are with same names only.
But it is not showing any effect. it is allowing user to select any day.
please help with it.
thanks
<igsch:webdatechooser id="txt_DateFrom" runat="server" ClientSideEvents-CalendarValueChanging="_calendarchanging()" nulldatelabel="" style="z-index: 104; left: 395px; position: absolute; top: 128px"> <CALENDARLAYOUT TitleFormat="Month" PrevMonthImageUrl="ig_cal_blueP0.gif" NextMonthImageUrl="ig_cal_blueN0.gif" /></igsch:webdatechooser>
in the BLOCKED SCRIPT
<script type="text/javascript" language="javascript">function _calendarvaluechanging(oCalendar, oDate, oEvent){ if (oDate.getDay() != 1) { oEvent.cancel = true; }}
</script>
But there is no effect.
When the user opens the calendar, all the days and dates should be visible(but only the dates of mondays to be enabled of every month to select, all others should be disabled).
Thank you for your time in advance.
Hi gagani,
Thank you for posting in our forum.
You can achieve this handling the CalendarValueChanging client-side event:
function WebDateChooser1_CalendarValueChanging(oCalendar, oDate, oEvent){ if (oDate.getDay() != 1) { oEvent.cancel = true; }}
Please let me know if this helps.