This is a migrated thread and some comments may be shown as answers.

No ErrorTemplate ?

1 Answer 67 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Laurent
Top achievements
Rank 1
Laurent asked on 20 Mar 2015, 12:07 PM
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}"

1 Answer, 1 is accepted

Sort by
0
Laurent
Top achievements
Rank 1
answered on 20 Mar 2015, 01:46 PM
It's ok, sorry for this.
The default binding mode on SelectedTime isn't "Mode=TwoWay"
Tags
TimePicker
Asked by
Laurent
Top achievements
Rank 1
Answers by
Laurent
Top achievements
Rank 1
Share this question
or