How to toggle resources to view

2 posts, 0 answers
  1. Jordan
    Jordan avatar
    3 posts
    Member since:
    Jan 2013

    Posted 24 Mar 2013 Link to this post

    Hello,

    I only want one given resource to be viewed at any point on the scheduler. I have multiple resources, but I cannot seem to find out how to toggle which resource should be viewed. It just shows the first resource I added to the collection, and then at runtime I can't see a way to toggle between those resources:



    Also, I forgot to dereference a radscheduler from a navigator, and now I am unable to add a new radschedulenavigator from the toolbox as many exceptions will be thrown:

  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 27 Mar 2013 Link to this post

    Hi Jordan,

    More information on how to work with Resources in RadScheduler you can find in the following documentation articles: Working with Resources and Setting Appointment and Resource relations. I have tested the navigator control and I did not find any issues with attaching a scheduler. Here is a sample code how to add navigator control at run-time:
    public partial class SchedulerSortAppointmentsForm : Form
    {
        private RadScheduler scheduler = new RadScheduler();
     
        public SchedulerSortAppointmentsForm()
        {
            InitializeComponent();
     
            scheduler.Dock = DockStyle.Fill;
            scheduler.Parent = this;
            scheduler.AllowAppointmentMove = true;
     
            scheduler.ShowNavigationElements = true;
            RadSchedulerNavigator navigator = new RadSchedulerNavigator();
            navigator.Parent = this;
            navigator.AssociatedScheduler = this.scheduler;
            navigator.Dock = DockStyle.Top;
            navigator.BringToFront();
     
        }
    }

    I hope this helps.

    All the best,
    Julian Benkov
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top