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

Explicitly raise OnError ClientEvent using javascript

1 Answer 61 Views
Input
This is a migrated thread and some comments may be shown as answers.
Scott Cullen
Top achievements
Rank 1
Scott Cullen asked on 16 Aug 2011, 09:38 PM
Hi,

I have an OnError ClientEvent defined like this:

<telerik:RadDatePicker Width="100px" Visible="false" ID="dpToDate" Runat="server" Skin="WebBlue">
    <DateInput ID="DateInput2" runat="server" LabelCssClass="radLabelCss_WebBlue" Skin="WebBlue">
        <ClientEvents OnError="DisplayDateError"></ClientEvents>
    </DateInput>
    <Calendar ID="Calendar3" runat="server" Skin="WebBlue">
    </Calendar>
    <DatePopupButton CssClass=""></DatePopupButton>
</telerik:RadDatePicker>

Is it possible to raise the OnError ClientEvent of DateInput explicitly using javascript?

Thanks, -Scott

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 19 Aug 2011, 09:41 AM
Hello Scott,

The OnError client-side event is fired when one tries to set invalid value for the DateInput. So you can try setting such value manually and see if the event will be thrown thus.

Regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Input
Asked by
Scott Cullen
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or