I'm using RadTimePicker in ASP.NET Grid. My requirement is need to display start time 30 mins increment and End time 30 decrement in TimeView based on current time in the grid.
Kindly suggest.
Thanks in advance.
2 Answers, 1 is accepted
0
Andrey
Telerik team
answered on 12 Mar 2012, 09:22 AM
Hi,
In order to give you suggestion I will need more information about your project. Could you share your RadGrid declaration along with the respective event handlers? Doing this will help all the people who want to help you to have better understanding of your project. Additionally, please specify to which columns you wish to bind the Start and End times.
Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Here is my solution : To display 30 mins increment from current TimePicker view for the asp.net Grid.
Dim l_timepickerStartTime As RadTimePicker
Dim l_selectedDateStartTime As DateTime
Dim l_selectedDateStartTimeHour As Integer
Dim l_selectedDateStartTimeMinutes As Integer
If l_selectedDateStartTimeMinutes.Equals(0) Then
l_timepickerStartTime.TimeView.StartTime = New TimeSpan(l_selectedDateStartTimeHour, 30, 0)
Else
l_timepickerStartTime.TimeView.StartTime = New TimeSpan(l_selectedDateStartTimeHour + 1, 0, 0)
End If
Similarly way for 30 minutes decrement for EndTime.
Kindly let me know for any changes in the above code.