To reproduce: -add a GridViewDateTimeColumn to a RadGridView. -try to set RadDateTimeEditor.MaxValue in CellEditorInitialized event to 31/12/9999. As a result ArgumentOutOfRangeException("MaxDate cannot be higher than the max date") is thrown
Thank you.
Regards
Paulo
public RadForm1()
{
InitializeComponent();
RadDateTimePicker.MaximumDateTime = DateTime.MaxValue;
this.radGridView1.CellEditorInitialized += radGridView1_CellEditorInitialized;
}
private void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
RadDateTimeEditor dateTimeEditor = e.ActiveEditor as RadDateTimeEditor;
if (dateTimeEditor != null)
{
dateTimeEditor.MaxValue = new DateTime(9999,12,31);
}
}
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hi
Is this issue fixed? If so, can you post an example?
We have version 2019.2.618.40 and it still happens.
Regards
Paulo