Radscheduler bug - String was not recognized as a valid DateTime

4 posts, 0 answers
  1. Phani Musale
    Phani Musale avatar
    24 posts
    Member since:
    Jan 2010

    Posted 15 Jul 2010 Link to this post

    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
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 20 Jul 2010 Link to this post

    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
  3. Phani Musale
    Phani Musale avatar
    24 posts
    Member since:
    Jan 2010

    Posted 04 Aug 2010 Link to this post

    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
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 04 Aug 2010 Link to this post

    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
Back to Top