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

Display total work time

4 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 25 Feb 2011, 01:48 PM

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

4 Answers, 1 is accepted

Sort by
0
André
Top achievements
Rank 1
answered on 25 Feb 2011, 03:26 PM

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

0
André
Top achievements
Rank 1
answered on 25 Feb 2011, 07:45 PM

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

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

0
André
Top achievements
Rank 1
answered on 25 Feb 2011, 08:13 PM

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>

0
André
Top achievements
Rank 1
answered on 28 Feb 2011, 10:00 PM

Solved!

Tags
Scheduler
Asked by
André
Top achievements
Rank 1
Answers by
André
Top achievements
Rank 1
Share this question
or