How we can change the "start time" label to "start date" in new appointment popup

2 posts, 0 answers
  1. Ano
    Ano avatar
    11 posts
    Member since:
    Jun 2011

    Posted 05 Sep 2012 Link to this post

    How we can change the "start time" label text to "start date" in new appointment popup of rad scheduler
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2035 posts

    Posted 06 Sep 2012 Link to this post

    Hello Ano,

    This piece of JavaScript code that you will found below is working fine on each appointment insert and update. 

    your aspx file
    <telerik:RadScheduler runat="server" ID="RadScheduler1"  OnClientFormCreated="RadScheduler1_OnClientFormCreated">         
    </telerik:RadScheduler>

    and your JavaScript code

    function RadScheduler1_OnClientFormCreated(sender, eventArgs) {
                   var $ = $telerik.$;
                   var mode = eventArgs.get_mode();
                   if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
                       mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
                   $('.rsTimePick > label').text("Start date");
                 }
                }

    I hope this will be helpful.


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