This question is locked. New answers and comments are not allowed.
Hello,
I'm using RIA services and CustomValidation attribute for some fields of my business object.
There are a couple of datetime fields on a DataForm which I would like to bind to a MaskedDateTimeInput, but there are some issues regarding to validation. If I use MaskedTextBox instead of MaskedDateTimeInput the first control behaves as expected...
I have attached some screenshots to show what I mean.
Problem 1: if I enter a datetime value that does not pass validation both controls go into invalid state but the dataform's field bound to MaskedDateTimeInput doesn't get red.
Problem 2: If I tab out of MaskedDateTimeInput while it is in invalid state the control shows the value that was before the change. I expected it to show the new value like the MaskedTextBox does...
I'm using RIA services and CustomValidation attribute for some fields of my business object.
There are a couple of datetime fields on a DataForm which I would like to bind to a MaskedDateTimeInput, but there are some issues regarding to validation. If I use MaskedTextBox instead of MaskedDateTimeInput the first control behaves as expected...
I have attached some screenshots to show what I mean.
Problem 1: if I enter a datetime value that does not pass validation both controls go into invalid state but the dataform's field bound to MaskedDateTimeInput doesn't get red.
Problem 2: If I tab out of MaskedDateTimeInput while it is in invalid state the control shows the value that was before the change. I expected it to show the new value like the MaskedTextBox does...
<!-- Start date --> <toolkit:DataField Label="Start date" > <telerik:RadMaskedDateTimeInput Value="{Binding DateStarted, Mode=TwoWay}" Mask="g" /> </toolkit:DataField> <!-- Finish date--> <toolkit:DataField Label="Finish date"> <telerik:RadMaskedTextBox Value="{Binding DateFinished, Mode=TwoWay}" Mask="g" MaskType="DateTime" /> </toolkit:DataField>