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

Rad Scheduler + Dynamic confirm delete text

1 Answer 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 04 Apr 2014, 06:44 AM
Hi, 

We are using the rad scheduler for appointments.  If the user want's to delete the appointment, it is displaying "Are you sure you want to delete the appointment".

But we need custom message based on the appointment type. 

 For Example: 
1.  Appointment Type #1 :  Message #1 
2.  Appointment Type #2 :  Message #2.


Please help me.

Thanks,
Praveen

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 07 Apr 2014, 08:22 AM
Hello,

Here is one way to change the text of the delete confirmation depending on the appointments id
function pageLoad() {
              var $ = $telerik.$,
                  scheduler = $find("<%= RadScheduler1.ClientID %>");
 
              $(".rsAptDelete").click(function myfunction() {
 
                  var appID = scheduler.getAppointmentFromDomElement(this).get_id();
                  if (appID >= 10) {
                      scheduler.get_localization().ConfirmDeleteText ="new Text";
                  }
              });
          }

Hope this will be helpful. 

Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Praveen
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or