Issue with adding OnDateSelected client event

Thread is closed for posting
2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 09 Dec 2009 Link to this post


    My script references start erroring across the board whenever I add a date selected client-side event handler in the callback, as in:

    <%= Html.RenderRadDatePicker((rad) =>


    rad.ID = "StartDate";

    rad.SelectedDate = DateTime.Today;

    //rad.ClientEvents.OnDateSelected = "StartDate_DateSelected";


    }, "Forest") %>

    <%= Html.RenderRadTimePicker((rad) =>


    rad.ID = "StartTime";

    rad.SelectedDate = DateTime.Now.RoundHoursUp(1);

    //rad.ClientEvents.OnDateSelected = "StartTime_DateSelected";


    }, "Forest") %>

    WHen the event handlers (with comment // removed of course), the page goes crazy with errors.  What is the cause of this?  Missing a script definition?


  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 15 Dec 2009 Link to this post

    Hello Brian Mains,

     Unfortunately I could not reproduce the depicted issue. I have attach the sample project which I used for my tests. Please review it and try to replicate the error on it.

    Georgi Krustev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top