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

OnClientDateChanged is obsolete use OnValueChanged instead

2 Answers 302 Views
Input
This is a migrated thread and some comments may be shown as answers.
Nate Pinchot
Top achievements
Rank 1
Nate Pinchot asked on 13 Feb 2009, 03:52 PM
Hi,
According to the documentation this is correct:
Event  Applies to  Description
OnValueChanged  all RadInput controls  Occurs after a new value has been assigned when the control loses focus.


However, using this code:
<telerik:RadDatePicker ID="createDateStart" OnSelectedDateChanged="filter_ValueChanged" runat="server" Width="104px" AutoPostBack="True" Skin="Office2007"
    <ClientEvents OnValueChanged="date_ClientDateChanged" /> 
</telerik:RadDatePicker> 


I get the following error:

Parser Error Message: Type 'Telerik.Web.UI.Calendar.DatePickerClientEvents' does not have a public property named 'OnValueChanged'.


The intellisense shows me a property called OnDateSelected but I don't see any documentation for this? So I'm not entirely sure.
What would be the proper event to use instead of OnClientDateChanged?

You guys have a great product but I can't stress enough how much greater it would be if the documentation was better and more up-to-date :)

Thanks.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Feb 2009, 12:16 PM
Hello Nate,

Thank you for the feedback.

OnValueChanged event belongs to RadInput (DateInput in this case) controls. Please examine the following example:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server"
    <DateInput runat="server" ClientEvents-OnValueChanging="ValueChanging" /> 
</telerik:RadDatePicker> 

More information about this matter is available in our documentation:
RadInput Overview
RadInput Client-Side Events
RadInput Client-Side Basics
Customizing the Embedded Controls

Alternatively you can use DateSelected event of RadDatePicker:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server"
    <ClientEvents OnDateSelected="DateSelected" /> 
</telerik:RadDatePicker> 

RadDatePicker Client-Side Events
RadDatePicker Client Object
RadDatePicker OnDateSelected

Hope this helps.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nate Pinchot
Top achievements
Rank 1
answered on 16 Feb 2009, 03:12 PM
Daniel,
Thanks for clearing that up. Appreciate it.
Tags
Input
Asked by
Nate Pinchot
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Nate Pinchot
Top achievements
Rank 1
Share this question
or