Recurrence editor Recurrence checkbox client side event?

2 posts, 0 answers
  1. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 16 Nov 2011 Link to this post

    Hi, I am wondering if there is any way to trap the Recurrence checkbox checked event client side? It would be wonderful to be able to get the checkbox state client side to do some validation on other data on our form. Thanks.
  2. Plamen
    Admin
    Plamen avatar
    3056 posts

    Posted 21 Nov 2011 Link to this post

    Hello Karl,

     
    You can use jQuery as shown in the following code:

    function OnClientFormCreated(sender, args) {
               var $ = $telerik.$;
               var recur = $(".RecurrenceEditor .rsAdvChkWrap input:checkbox").click(function () {
                   if ($(this).attr('checked') == 'checked') {
                       alert("checked");
                   }
                   else {
                       alert("unchecked");
                   }
               });
           }

    Hope this helps.

    Greetings,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top