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

Issue with adding OnDateSelected client event

1 Answer 55 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 09 Dec 2009, 09:06 PM
Hello,

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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Dec 2009, 04:36 PM
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.


Regards,
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or