Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create a DateEdit descendant that will allow date unit selection, and multiple dates and periods selection

$
0
0

This example shows how to create a DateEdit descendant that will allow date unit selection, and multiple dates and periods selection.

See Also:
Forcing DateEdit to select multiple dates and periods

Question Comments

Added By: Torr Wash at: 12/7/2015 11:52:55 PM    

Example 15.2.3 absolutely stupid and does not correspond to the functional old version!
How to make DateEdit function as DatePeriodEdit?
You have successfully broke what worked for several years.
As it is now, edit  Period or PeriodSet ??
DatePeriodEdit is now impossible to compile because you have cut the necessary classes!

Added By: Nadezhda (DevExpress Support) at: 12/8/2015 7:01:55 AM    

Hello Torr,

We have introduced a calendar control in version 15.2 - CalendarControl. This control has the SelectionMode property.
Now, this calendar is used in DateEdit's popup. Thus, SelectedMode is available in the RepositoryItemDateEdit class. However, there is no way to obtain selection of multiple dates for DateEdit.EditValue at the moment.
If you wish to get or set a selected range, you can use CalendarControl.SelectedRanges. I have modified the example to illustrate it.
Do not hesitate to contact us if you need any further assistance. 


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>