subject alert for advanced form

4 posts, 0 answers
  1. Cihan
    Cihan avatar
    2 posts
    Member since:
    Oct 2011
  2. Plamen
    Admin
    Plamen avatar
    3049 posts

    Posted 27 Oct 2011 Link to this post

    Hi Cihan,

    The KB that you linked works as expected. Could you please elaborate more?

    Regards,
    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
  3. Cihan
    Cihan avatar
    2 posts
    Member since:
    Oct 2011

    Posted 27 Oct 2011 Link to this post

    Hi Plamen,

    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/preventing-insert-of-appointments-without-specifying-subject.aspx
    I want to do the same process advanced in the form at this link. If something has not been entered in the Save button is pressed, the topic I want to give a alert message. How can I do ?

    I want to do it:
    http://imageshack.us/f/94/adszeiu.jpg/
    alert("Please insert a subject");
    for advanced form in the save button.

    Thank You ...
  4. Plamen
    Admin
    Plamen avatar
    3049 posts

    Posted 28 Oct 2011 Link to this post

    Hello Cihan,

    You can refer to the Handling Form Created help topic (the custom validator part at the bottom) and add the alert as in the code:
    function validationFunction(source, arguments) {
     
          if (arguments.Value !="-") {
              arguments.IsValid = true;
     
          } else {
              alert("-");
              arguments.IsValid = false;
          }
      }

    Hope this will help.

    Regards,
    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