Display total work time

5 posts, 0 answers
  1. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    Hi, I'd like to know if there is a a method to get the total working time of the day, which is the beginning of the first appointment to the end of the last appointment of the day (including possible pauses between them as work time)

    On Day view, i found it easy to get this with client-side scripting, looping though scheduler.appointments, and then inserting it as dom node in the header

    However, i can't find how to do this in the week view.

    My client do not want to use Month and TimeLine view now but, if possible, I'd like to know how to do this for them too

    Thank you very much in advance.

    Regards,

    Andre

  2. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    I have another question... Although not directly related to the first, it has to do with the same functionality

    When RadScheduler changes, it is redrawn on the client. Is there any event called when RadScheduler finishes loading, including all appointments? I tried OnClientAppointmentPopulated, OnClientDataBound, with no success. When I call those functions, JS scheduler object is null on the client

  3. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    Please, I need to know when the client-side scheduler object is created or refreshed.

    Because $find('<%= RadScheduler.ClientID %>'); returns null for most events!

  4. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    OK, i found out how run a script after the scheduler object have been created

    But how do I bind functions to client events? That's how I'm doing:

    <script type="text/javascript">
                Sys.Application.add_load(scriptLoaded);
      
                function scriptLoaded() {
                    alert("Script loaded");
                    var scheduler = $find('RadSchedulerRoteiros');
                    scheduler.add_appointmentsPopulated(eventRun);
                    scheduler.add_appointmentDataBound(eventRun);
                    scheduler.add_appointmentCreated(eventRun);
             }
      
              function eventRun(){
                  alert("Event run");
              }
      
    </script>

  5. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 28 Feb 2011 Link to this post

    Solved!

Back to Top