-
-
Save LSTANCZYK/5a553f5bf2cbf590af0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateTimeMaskController : ViewController<DetailView> | |
{ | |
protected override void OnViewControlsCreated() | |
{ | |
base.OnViewControlsCreated(); | |
foreach (var viewItem in View.Items) | |
{ | |
ASPxDateTimePropertyEditor editor = viewItem as ASPxDateTimePropertyEditor; | |
if (editor != null) | |
editor.ControlCreated += (s, e) => | |
{ | |
ASPxDateTimePropertyEditor dateTimePropertyEditor = (ASPxDateTimePropertyEditor) s; | |
dateTimePropertyEditor.Editor.UseMaskBehavior = true; | |
}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment