Hi,
In one of the links i found that, for Validating date in XamDateTimeEditor they are using DateRangeValidateRule property.(Highlighted in Bold below)
Can you tell me in what name space this is used.
<igEditors:XamDateTimeEditor Name="dtDate" Grid.Row="0" Grid.Column="5" VerticalAlignment="Center" HorizontalAlignment="Left" Width="100" TabIndex="4" Format="dd-MMM-yyyy" Mask="dd-mm-yyyy" ToolTip="Select a date"> <igEditors:XamDateTimeEditor.Value> <Binding Path="GoLiveDate" > <Binding.ValidationRules> <validator:DateRangeValidateRule MinimumDate="DateTime.Now" ErrorMessage="Date must be greater than today's date."/> </Binding.ValidationRules> </Binding> </igEditors:XamDateTimeEditor.Value> </igEditors:XamDateTimeEditor>
Thanks,
Varun
Thanks a lot dude :-)
The snippet to which you refer was not posted by an Infragistics employee but was something posted as part of a question by a customer. There is no such rule in the Infragistics assemblies. That being said if you want to restrict dates that the user can enter you can use the (Min|Max)(Inclusive|Exclusive) properties of the ValueConstraint to control what dates are allowed.