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

Problems with ShowDayHeaders/ShowHeader

1 Answer 158 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 19 Feb 2009, 11:22 PM
Hi, I'm evaluating the RadScheduler for a project at the moment and it looks pretty good, but I need to display multiple day views (same day, different people) side by side and hide the headers.  
Although the documentation is a bit sparse, I would have thought that the ShowDayHeaders, or ShowHeader on the active view would have controlled this, but it doesn't appear to work.   Any hints as to how to achieve this?

        Dim sched As New RadScheduler 
        sched.BackColor = System.Drawing.Color.White 
        sched.DataSource = Nothing 
        sched.Dock = System.Windows.Forms.DockStyle.Left 
        sched.HighlightToday = True 
        sched.Location = New System.Drawing.Point(0, 0) 
        sched.Name = "RadScheduler1" 
        sched.Size = New System.Drawing.Size(200, 560) 
        sched.TabIndex = 0 
        sched.Text = "RadScheduler1" 
        sched.AllowDrop = True 
 
 
        Me.pnlSchedule.Controls.Add(sched) 
 
        Dim view As Telerik.WinControls.UI.SchedulerDayView 
 
        view = TryCast(sched.ActiveView, Telerik.WinControls.UI.SchedulerDayView) 
        If view IsNot Nothing Then 
            view.StartDate = DateTime.Today 
            view.DayCount = 1 
            view.ShowAllDayArea = False 
            view.ShowDayHeaders = False 
            view.ShowHeader = False 
        End If 

I'm also trying to find a way to limit the displayed time range for the day, so it limits the view to WorkTime or a VisibleTime property?

One last question. I'll by trying to implement drag/drop between two+ schedule controls, I haven't started developing this yet, but I suspect that there is no underlying support for this, but it would be nice to know if it is achievable before I start playing in this area?

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 23 Feb 2009, 07:50 AM
Hi Matthew,

Thank you for evaluating RadScheduler for WinForms.

You can easily limit the displayed time range by using the RulerStartScale and RulerEndScale properties of a day view.  For more information and example you can take a look at this thread.
Your feedback is very helpful and we will be working to make this functionality easier to discover.

The header related properties do not currently work correctly, and there is no way to hide the headers. This is a known issue that we will address in the upcoming Q1 2009 release of RadControls for WinForms.

Your scenario about displaying multiple day views sounds very interesting. Could you please illustrate it with a picture to make it more clear? May be you need some sort of grouping functionality?

The RadScheduler control is still a new addition to the RadControls for WinForms suite and does not have out of the box drag and drop functionality yet.

However, you could try implementing custom drag and drop functionality. To do that you will need to know on which appointment a user has clicked.  For this you could use the AppointmentMouseDown or MouseDown event of RadScheduler like below:
void radScheduler_AppointmentMouseDown(object sender, SchedulerAppointmentMouseEventArgs e) 
        { 
            Console.WriteLine("AppointmentMouseDown: {0}", e.Appointment.ToString()); 
        } 
 
        void radScheduler_MouseDown(object sender, MouseEventArgs e) 
        { 
            RadElement element = this.radScheduler.ElementTree.GetElementAtPoint(e.Location); 
            AppointmentElement appointmentElement = element as AppointmentElement; 
            Console.WriteLine("MouseDown: {0}", appointmentElement.Appointment.ToString()); 
        } 

Hope this helps. If you need additional assistance, feel free to contact me.

All the best,
Jordan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler and Reminder
Asked by
Matthew
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Share this question
or