I am using Telerik 2010 Q1 .
So the problem i am facing is that on pasting the characters or typing characters in the Date Picker it is not validating at all and my page gets submitted on submit click.
but if i use some thing like this in one JS file i.e.(Common.JS)
function Error(sender, args) {
sender.clear();
}
and then in individual page i write
<
telerik:RadDatePicker ID="dtFollowUpDate" runat="server" Skin="Office2007" Culture="English (United States)"
Height="18px">
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
<DateInput ID="DateInput1" Skin="Office2007" runat="server" DateFormat="dd-MMM-yyyy" DisplayDateFormat="dd-MMM-yyyy"
ClientEvents-OnError="Error" Height="18px">
</DateInput>
<Calendar ID="Calendar2" runat="server" Skin="Office2007">
</Calendar>
</telerik:RadDatePicker>
and its work perfectly for me.But for this to happen i have to write in all the pages for each control.
So what i want is to write some common thing in Web.config so that all the page should take effect.
Some thing like this
<
add key="Telerik.Web.UI.RadDateInput.ClientEvents-OnError" value="Error" />
Please advice how these can be achived or there is any other way to do this globally.
Thanks in Advance.