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

[Solved] Setting TimeView of RadDateTimePicker in RadGrid

2 Answers 128 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alex Occhipinti
Top achievements
Rank 1
Alex Occhipinti asked on 03 Jun 2009, 01:12 PM

  I would  like to set the TimeView's StartTime and EndTime once the control has it's value.  The RadDateTimePicker exists within the EditTemplate of a RadGrid.  I tried handling the ItemDataBoundEvent of the RadGrid, finding the RadDateTimePicker and then setting it's TimeView values.  This does not seem to work.  I'm guessing that it's too late in the process.  I need to be able to access the server side (run a query) to know what values to set based on the date selected in the RadDateTimePicker.   Ideas?

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 05 Jun 2009, 03:12 PM
Hello Alex,

Indeed, The ItemDataBound event is too late to set the TimeView desired settings. Therefore I suggest that you use shared TimeView for the edit form RadDatePickers and see if it works for you. I am attching a sample project to illustrate the suggested solution.

Check it out and let me know if it works for you.

Greetings,
Iana
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
Alex Occhipinti
Top achievements
Rank 1
answered on 05 Jun 2009, 08:15 PM
Worked perfectly.  Thanks!!
Tags
Scheduler
Asked by
Alex Occhipinti
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Alex Occhipinti
Top achievements
Rank 1
Share this question
or