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

OnError called twice

1 Answer 95 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Hash
Top achievements
Rank 1
Hash asked on 09 Dec 2015, 02:42 PM

Hi

I am using below code for datepicker

 

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" MinDate="2015/7/7">
    <DateInput runat="server">
        <ClientEvents OnError="pickerError" />
    </DateInput>
</telerik:RadDatePicker>

and below is my javascript code

function pickerError(sender, args)
{                   
  alert("Please fix the dates");
}

So when we enter an invalid date say 2015/2015/2015 the pickerError method is called and an alert box is shown but when we try to edit the date (click on the textbox) the pickerError method is called again. Does anyone know why this is happening?

Please note that this was working fine in Q2 2012, but we have upgraded to Q2 2015.

 Also, I have watched args.get_reason() and in both cases its value is 1.

Thanks 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 14 Dec 2015, 12:38 PM
Hi,

It appears that the presented behavior is a bug for the control. I have logged it into our tracking system, and our development team will do the best to fix it as soon as possible.
excuse us for any inconvenience this issue my lead.

As a token of gratitude for reporting this bug you will find your Telerik points updated.


Regards,
Maria Ilieva
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
Hash
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or