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

Radscheduler bug - String was not recognized as a valid DateTime

3 Answers 129 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Phani Musale
Top achievements
Rank 1
Phani Musale asked on 15 Jul 2010, 03:21 PM
When I click on a date in the scheduler control, I get the "String was not recognized as a valid DateTime" exception. Please see the two images attached for more info. I have tried changing the globalization settings on the web.config and on the IIS to en-GB. Still doesn't work. Please help.

Thanks

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 20 Jul 2010, 04:54 PM
Hello Phani Musale,

You almost catched where the problem is. Dates are in en-US format in the RadScheduler.

Dates in "en-GB" Culture are represented this way: dd/MM/yyyy.
The date which causes problems is 14 July 2010 as I see on the picture. In "en-GB" format it will be 14/07/2010.

However "en-US" accepts this format: M/d/yyyy and the date should be 7/20/2010.

So the solution is to specify the "en-US" culture in the globalization section in the Web.Config file:

<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US" />

Hope this helps.

Regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Phani Musale
Top achievements
Rank 1
answered on 04 Aug 2010, 11:48 AM
We are in the UK and therefore need UK times. In either case is there a way to diable the hyerlink on the dates and just show the dates in a RadScheduler. May be vai CSS. I know rsDateHeader is the relevant CSS. This is bit urgent!!

Thanking in advance
0
Veronica
Telerik team
answered on 04 Aug 2010, 02:34 PM
Hi Phani Musale,

Yes, you can disable the functionality by this code:

function pageLoad() {
                $telerik.$(".rsDateHeader").each(function(i) {
                    $telerik.$(this).bind("click", function() {
                        return false;
                    });
                });
            }

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
Phani Musale
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Phani Musale
Top achievements
Rank 1
Share this question
or