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

subject alert for advanced form

3 Answers 28 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cihan
Top achievements
Rank 1
Cihan asked on 26 Oct 2011, 12:46 PM

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Oct 2011, 10:35 AM
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
0
Cihan
Top achievements
Rank 1
answered on 27 Oct 2011, 01:35 PM
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 ...
0
Plamen
Telerik team
answered on 28 Oct 2011, 03:49 PM
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
Tags
Scheduler
Asked by
Cihan
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Cihan
Top achievements
Rank 1
Share this question
or