I have a RadTimePicker in which I want to set its interval property from the code behind. I had tried setting but everytime
it is displaying a type conversion error. So can anyone help me how to set the same from code behind?
The Interval property of RadTimePicker is of type
System.TimeSpan. If you try to set it simply using quotes or using
another type such as System.DateTime, you will get a type conversion
error. Please check the following sample C# code.
C#:
//setting time interval as 20 minutes. The format is new TimeSpan(hour, minutes, seconds)