Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Scheduler > How can i get this display?

Not answered How can i get this display?

Feed from this thread
  • Simon avatar

    Posted on Oct 18, 2011 (permalink)

    Does anyone know the best way to get the scheduler to display with each day as a new row and the 24 hours across top.

    Example Layout

    Any help would be great. The best i can get is 7 controls down the page (1 per day of week). But that means you get the header and the time markers on every one, not just at top. It's also a bit slower due to having 7 controls.

    Also, on a related matter, when i show the scheduler control in Timeline view to get the Appointments running horizontally, all i get is a downward faving triangle where the appointment starts. Not a bar from start time to end time. Is this some style i need to apply?

    I have attached both the desired layout and what mine currently looks like with the downward triangles and repeated headers.

    Reply

  • Pana Pana admin's avatar

    Posted on Oct 18, 2011 (permalink)

    Hello Simon,

    You could use the DayView of RadScheduleView with Horizontal Orientation.

    <UserControl x:Class="Scheduleview.MainPage"
            mc:Ignorable="d"
            d:DesignHeight="300" d:DesignWidth="400">
      
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadScheduleView>
                <telerik:RadScheduleView.ActiveViewDefinition>
                    <telerik:WeekViewDefinition Orientation="Horizontal" />
                </telerik:RadScheduleView.ActiveViewDefinition>
                <telerik:RadScheduleView.AppointmentsSource>
                    <telerik:ObservableAppointmentCollection />
                </telerik:RadScheduleView.AppointmentsSource>
            </telerik:RadScheduleView>
        </Grid>
      
    </UserControl>

    Further you could check the "Styling the GroupHeaders" help section for RadScheduleView.

    Kind regards,
    Pana
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Simon avatar

    Posted on Oct 28, 2011 (permalink)

    Hi,

     

    Thanks for the quick reply but i am having some issues working out how to get my data attached to the ScheduleView control.

    I have a collection of Start/End times returning from a Web Service and was previously creating Appointment objects and attaching them to the Scheduler control.

    I believe i need to create a single object which is a collection of Appointments and set them as the AppointmentSource for the ScheduleView, but i can't seem to workout how to do this.

    Can you please point me in the right direction based on my code below and also help me workout how to Group these items based on the Date so that i get 1 group per Day of the week.

    Any help you can give or point me in the right direction would be great.

    Thanks in advance.

    Simon


     

    foreach (Q2AIR_TimecardTransaction cQ2AIR_TimecardTransaction in e.Result) 
    {
      Appointment meetingAppointment = new Appointment();
      meetingAppointment.Subject = "Transaction #" + (string)cQ2AIR_TimecardTransaction.TimecardTransactionId.ToString();
      meetingAppointment.Start = cQ2AIR_TimecardTransaction.StartLocalDt;
      meetingAppointment.End = cQ2AIR_TimecardTransaction.FinishLocalDt;
    }

    Reply

  • Simon avatar

    Posted on Oct 28, 2011 (permalink)

    Ok, as usual, just after i asked i sorted out my data issue so it is inserting and showing my appointments.

    But i am still having trouble showing 7 Rows with each day of the week as a new row and all the appointments for each day in the right row and running horizontally.

    I believe i use some sort of grouping for this so any help in that would be great.

    Thanks again.

    Simon

    Reply

  • Pana Pana admin's avatar

    Posted on Nov 2, 2011 (permalink)

    Hello Simon,

    You are correct. I guess the start and end dates are not properly set in your case. I have created a small demo that shows how you could populate the RadScheduleView with appointments. The view shows days of week vertically and the time flows left to right as you requested. The appointments are created and set into the ScheduleView in the codebeind of the MainPage.

    Greetings,
    Pana
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Simon avatar

    Posted on Nov 2, 2011 (permalink)

    Thanks heaps. That seems to be what i wanted.

    Simon

    Reply

  • Simon avatar

    Posted on Nov 2, 2011 (permalink)

    Thanks heaps. That seems to be what i wanted.

    Simon

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Scheduler > How can i get this display?
Related resources for "How can i get this display?"

Silverlight Scheduler Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]