It appears that RadTimePicker don't show anything (like red border and IDataErrorInfo.Error), is it normal ?
I wrote :
public partial class MyItem: IDataErrorInfo
{
public TimeSpan Duree { get; set; }
public string this[string columnName]
{
get
{
string result = null;
switch (columnName)
{
case "Duree":
if (Duree.Ticks <= 0)
result = "Un(e) Durée est requis(e)";
break;
default:
result = null;
break;
}
return result;
}
}
public string Error { get; private set; }
}
<telerik:RadTimePicker SelectedTime="{Binding MyItemInstanced.Duree, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
I wrote :
public partial class MyItem: IDataErrorInfo
{
public TimeSpan Duree { get; set; }
public string this[string columnName]
{
get
{
string result = null;
switch (columnName)
{
case "Duree":
if (Duree.Ticks <= 0)
result = "Un(e) Durée est requis(e)";
break;
default:
result = null;
break;
}
return result;
}
}
public string Error { get; private set; }
}
<telerik:RadTimePicker SelectedTime="{Binding MyItemInstanced.Duree, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"