Explicitly raise OnError ClientEvent using javascript

2 posts, 0 answers
  1. Scott Cullen
    Scott  Cullen avatar
    9 posts
    Member since:
    Jan 2009

    Posted 16 Aug 2011 Link to this post


    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>
        <Calendar ID="Calendar3" runat="server" Skin="WebBlue">
        <DatePopupButton CssClass=""></DatePopupButton>

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

    Thanks, -Scott
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 19 Aug 2011 Link to this post

    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.

    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.

Back to Top