The RepositoryItemTimeSpanEdit class provides members specific to the TimeSpanEdit control.
You can access these settings and events for standalone editors with the TimeSpanEdit.Properties object.
The main settings include:
- RepositoryItemTimeEdit.TimeEditStyle - Gets or sets how end-users can modify the control's value (spin buttons or touch-aware tiles).
- AllowEditDays, AllowEditHours, AllowEditMinutes, AllowEditSeconds, AllowEditMilliseconds - Ability to edit particular time span components (days, hours, minutes, seconds and milliseconds) using the edit box or tiles in the drop-down panel.
- MaxDays, MaxHours, MaxMinutes, MaxSeconds, MaxMilliseconds - The maximum number of days, hours, minutes, seconds and milliseconds that can be set using the edit box or tiles in the drop-down panel.
When using editors for in-place editing within container controls, such as the XtraGrid, you do not work with editors directly, but with corresponding repository items. In order to use the RepositoryItemTimeSpanEdit control for in-place editing, you have to create a RepositoryItemTimeSpanEdit object explicitly (for instance, using the grid's designer) and then assign it to a specific column. The RepositoryItemTimeSpanEdit control will be created automatically when required, based on the repository item settings.