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

RadDatePicker RadDateTimePicker

7 Answers 192 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Shane Ham
Top achievements
Rank 1
Shane Ham asked on 09 Apr 2009, 08:08 PM
When I use a RadDatePicker and set the SelectedDate to some datetime value, the time value gets set to 00:00.
The DateInput format and the DisplayFormat are "MM/dd/yyyy HH:mm"

So then I try the RadDateTimePicker and setting the SelectedDate to a datetime works as expected. 
However, I do not need the TimeView. I can certainly hide the popup button but I do not want the TimeView rendered. 
Attempts at setting the TimeViews visibility to false generates javascript errors. 

What I need is for the control to work with "MM/dd/yyyy HH:mm". If the RadDateTimePicker is the correct one, then I need a way to not render the TimeView.  

7 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 13 Apr 2009, 08:17 AM
Hello Shane,

Unfortunately the RadDateTimePicker cannot work correctly if a TimeView is not rendered on the page. I hope this is not a great inconvenience for you.

Greetings,
Pavel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Shane Ham
Top achievements
Rank 1
answered on 13 Apr 2009, 01:16 PM
It is really only a problem on forms that have several RadDateTimePicker controls on them. The rendering of the TimeView becomes too much and slows the page down. Although I have had a good experience using the Shared Calendar, using the Shared TimeView caused problems and never worked correctly.
0
Pavel
Telerik team
answered on 14 Apr 2009, 06:26 AM
Hello Shane,

Could you elaborate on the problems you have found using Shared TimeView? We will need more information in order to help you.

Regards,
Pavel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Shane Ham
Top achievements
Rank 1
answered on 21 Apr 2009, 01:24 PM
Yes. I have a class that derives from RadTimeView. This is really just a wrapper. No additional functionality is added. I also do this for the RadCalendar and no problems there.

So, whenever I add TimeView to a page (this case is inside a RadAjaxPanel) the following javascript error is thrown on page load.
The js error is "Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: baseType"
0
Pavel
Telerik team
answered on 23 Apr 2009, 01:54 PM
Hi Shane,

I have prepared a small sample which works without errors on my end. Please take a look at it and let me know what is needed to reproduce the problem.

All the best,
Pavel
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
Shane Ham
Top achievements
Rank 1
answered on 23 Apr 2009, 04:11 PM
Thanks for the example. After much trial and error I discovered the problem.
If you move the declaration of the RadTimeView before the controls that use it, the javascript error is thrown.

I moved my TimeViews to the bottom of my page and it worked as expected.

This is however unexpected behavior as this does not seem to be the case when sharing calendars.
All of my calendar declarations are at the top of the form and that works fine.
0
Pavel
Telerik team
answered on 24 Apr 2009, 09:50 AM
Hello Shane,

Indeed you are right and this is a known problem with the SharedTimeView. I can suggest you to put the control at the bottom of the page as a workaround, until it is fixed by our developers. Please excuse us for this inconvenience. I have updated your Telerik points as a small token of gratitude for your feedback.

All the best,
Pavel
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
Shane Ham
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Shane Ham
Top achievements
Rank 1
Share this question
or