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

[Solved] How Do i insert a list of times?

3 Answers 76 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 16 Jun 2009, 03:59 PM
I have a list of times in datetime format
List<DateTime> list = new List<DateTime>();  
list.Add(DateTime.Parse("08:00"));  
list.Add(DateTime.Parse("10:00"));  
list.Add(DateTime.Parse("12:00"));  
list.Add(DateTime.Parse("14:00"));  
list.Add(DateTime.Parse("16:00"));  
RadTimePicker1.TimeView.DataList.DataSource = list; 
and i want to know why they wont work in the timepicker on my page when i add them

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Jun 2009, 04:34 PM
Hello Kevin,

In my opinion your code looks correct. Unfortunately it is not enough to provide straight-to-the-point answer in this case. Could you attach (to support ticket) a runnable demo which demonstrates the issue?

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kevin
Top achievements
Rank 1
answered on 17 Jun 2009, 08:03 AM
Hi Daniel

does it matter that hi have that piece of code in an if statement where i have checked the conditions of the if statement and they are going to that list when i scroll over the time picker it has the time values but isnt displaying them

many thanks
0
Daniel
Telerik team
answered on 23 Jun 2009, 10:25 AM
Hello Kevin,

It seems that your TimePicker should display the values but I can't provide an appropriate answer without having the chance to debug your code locally. May I ask you again to provide e runnable (preferably a stripped one) project?

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Kevin
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or