Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Datepicker Calender aligment issue
posted

Hi Team,

Earlier i have used WebDateChooser control. Now migrating to WebDatepicker. Can you please provide Equivalent below code in webDatepicker.

'Align the Calendar dropdown to be centered under the DateChooser.
dateChooser.DropDownAlignment = Infragistics.WebUI.WebDropDown.DropDownAlignment.Center

'We can apply a StylePreset to the Calendar, instead of manually setting 'these properties.
dateChooser.CalendarLayout.Calendar.SetStylePresets(Infragistics.WebUI.WebSchedule.CalendarStylePreset.Silver, _
Infragistics.WebUI.WebSchedule.CalendarPresetNextPrevFormat.SmallTriangle, True)

Thanks,

Krishna | 9000701514

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    It seems that such control over the calendar positioning is not available out of the box. I have tried to customize it during client side events but it still does not seem consistent and reliable resolution. Considering the above I suggest that you simply set the same width to both the WebDatePicker and the WebMonthCalendar. Please let me know if this would work for you, otherwise I will further try to find alternative solution.

            <ig:WebDatePicker ID="WebDatePicker1" runat="server" DropDownCalendarID="WebMonthCalendar1"
                Height="35px" Width="200px">
            </ig:WebDatePicker>
            <ig:WebMonthCalendar ID="WebMonthCalendar1" runat="server" Height="198px" Width="200px">
            </ig:WebMonthCalendar>

Children