Default to Timeline view

Hello,

How would i get the view to default to the timeline and also remove the buttons for Day, Week, Month

[code]var scheduler = new DHXScheduler(this);
scheduler.Extensions.Add(SchedulerExtensions.Extension.Multisection);

        scheduler.LoadData = true;
        scheduler.EnableDataprocessor = true;

        var timeline = new TimelineView("timeline", "teamid");
        timeline.RenderMode = TimelineView.RenderModes.Tree;
        timeline.X_Unit = TimelineView.XScaleUnits.Day;
        timeline.X_Date = "%d";
        timeline.X_Size = 45;
        timeline.AddSecondScale(TimelineView.XScaleUnits.Month, "%F %Y");
        timeline.Dy = 75;
        timeline.SectionAutoheight = false;
        timeline.RoundPosition = true;


        var name = new LightboxText("text", "Resource");
        name.Height = 30;
        scheduler.Lightbox.Add(name);


        var section = timeline.AddOption(new TimelineUnit("0", "Remote Support", true));
        section.AddOption(new TimelineUnit("1", "Adrian Davies"));
        section.AddOption(new TimelineUnit("2", "Simon Roberts"));
        section.AddOption(new TimelineUnit("3", "Damian Fielding"));
        section.AddOption(new TimelineUnit("4", "Jonathan Mallinson"));


        var section2 = timeline.AddOption(new TimelineUnit("20", "Operations", true));
        section2.AddOption(new TimelineUnit("21", "David Pickup"));
        section2.AddOption(new TimelineUnit("22", "Gary Atherton"));
        section2.AddOption(new TimelineUnit("23", "Nigel Bolton"));
        section2.AddOption(new TimelineUnit("24", "Ian Moxham"));
        section2.AddOption(new TimelineUnit("25", "Juliet Alaro"));

        var section4 = timeline.AddOption(new TimelineUnit("30", "Networking", true));
        section4.AddOption(new TimelineUnit("31", "Jamie Smith"));
        section4.AddOption(new TimelineUnit("32", "Chris Berks"));
        section4.AddOption(new TimelineUnit("33", "Kamal Anjum"));
        section4.AddOption(new TimelineUnit("44", "Gary Pratt"));

        var section5 = timeline.AddOption(new TimelineUnit("40", "IT Systems", true));
        section5.AddOption(new TimelineUnit("41", "Scott Crawford"));
        section5.AddOption(new TimelineUnit("42", "Steven Kearney"));
        section5.AddOption(new TimelineUnit("43", "Fahid Shaheen"));

        var section6 = timeline.AddOption(new TimelineUnit("50", "Field Support", true));
        section6.AddOption(new TimelineUnit("51", "Shazhad Hussain"));
        section6.AddOption(new TimelineUnit("52", "Sam Bolton"));
        section6.AddOption(new TimelineUnit("53", "Sajid Hussain"));
        section6.AddOption(new TimelineUnit("54", "Andy Kelly"));
        section6.AddOption(new TimelineUnit("55", "Andy Dunn"));
        section6.AddOption(new TimelineUnit("56", "Faisal Iftikhar"));
        section6.AddOption(new TimelineUnit("57", "Shane Mash"));
        section6.AddOption(new TimelineUnit("58", "John Russell"));

        scheduler.Lightbox.Add(new LightboxMiniCalendar("time", "Time"));
        scheduler.Views.Add(timeline);
        //scheduler.Views[0].Label = "Month calendar";//Sets default view for month, week etc


        return View(scheduler);[/code]

Hello,
please try following:

scheduler.Views.Clear(); scheduler.Views.Add(timeline); scheduler.InitialView = timeline.Name;

here is a related article
scheduler-net.com/docs/fields-an … ging_views

and a demo:
s3.amazonaws.com/uploads.hipcha … alview.zip