Right-To-Left in Windows Forms DateTimePicker (SfDateTimeEdit)
3 Sep 2020 / 1 minute to read
SfDateTimeEdit
control elements can be aligned in right-to-left layout. This control can be laid out from right to left when the RightToLeft value is set to Yes
.
//Enable the Right to Left
this.dateTimeEdit.RightToLeft = RightToLeft.Yes;
'Enable the Right to Left
Me.dateTimeEdit.RightToLeft = RightToLeft.Yes
Change drop-down calendar alignment
The SfDateTimeEdit
allows you to change the drop-down opening side of the calendar relative to the control. The DropDownPopupAlignment of the SfDateTimeEdit can be used to change the alignment of calendar.
//Setting Left Popup alignment
this.dateTimeEdit.DropDownPopupAlignment = DropDownPopupAlignment.Left;
//Setting Right Popup alignment
this.dateTimeEdit.DropDownPopupAlignment = DropDownPopupAlignment.Right;
'Setting Left Popup alignment
Me.dateTimeEdit.DropDownPopupAlignment = DropDownPopupAlignment.Left
'Setting Right Popup alignment
Me.dateTimeEdit.DropDownPopupAlignment = DropDownPopupAlignment.Right
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page