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
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:
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
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:
functionpageLoad() {
$telerik.$(".rsDateHeader").each(function(i) {
$telerik.$(this).bind("click", function() {
returnfalse;
});
});
}
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