static public void BuildGrid(DHXScheduler scheduler)
        {
            var grid = new DHTMLX.Scheduler.Controls.GridView("grid");            //initializes the view



            // adds the columns to the grid
            grid.Columns.Add(
                new GridViewColumn("start_date", "Date")
            {
                Template = "{start_date:date(%m-%d-%Y %H:%i)}"                   //sets the template for the column
            });

            grid.Columns.Add(
                new GridViewColumn("text", "Event")                             //initializes a column
            {
                Width = 200                                                     // sets the width of the column
            });

            grid.Columns.Add(
                new GridViewColumn("details", "Details")
            {
                Align = GridViewColumn.Aligns.Left,                     // sets the alignment in the colum
                Width = 200
            });

            grid.Columns.Add(
                new GridViewColumn("owner_name", "User Name")
            {
                Align = GridViewColumn.Aligns.Center                    // sets the alignment in the colum
            });

            grid.Columns.Add(
                new GridViewColumn("lead_name", "Lead/Claim")
            {
                Align = GridViewColumn.Aligns.Center                    // sets the alignment in the colum
            });

            grid.Columns.Add(
                new GridViewColumn("statusName", "Status")
            {
                Align = GridViewColumn.Aligns.Center                    // sets the alignment in the colum
            });


            scheduler.Views.Clear();

            scheduler.Views.Add(new WeekView());
            scheduler.Views.Add(new DayView());
            scheduler.Views.Add(new MonthView());

            grid.Label = "Agenda";

            grid.Select = true;
            grid.Paging = true;

            scheduler.Views.Add(grid);            //adds the view to the scheduler
            //scheduler.Views[1].Label = "Agenda";
            scheduler.InitialView = "grid";
        }
        public static void BuildGrid(DHXScheduler scheduler)
        {
            var grid = new DHTMLX.Scheduler.Controls.GridView("grid");//initializes the view

            // adds the columns to the grid
            grid.Columns.Add(
               new GridViewColumn("start_date", "Date") {
                   Template = "{start_date:date(%m-%d-%Y %H:%i)}"//sets the template for the column
               });

            grid.Columns.Add(
                    new GridViewColumn("text", "Event") {	//initializes a column
                        Width = 200					// sets the width of the column

                    });

            grid.Columns.Add(
                new GridViewColumn("details", "Details") {
                    Align = GridViewColumn.Aligns.Left,	// sets the alignment in the colum
                    Width = 200
                });

            grid.Columns.Add(
                new GridViewColumn("owner_name", "User Name") {
                    Align = GridViewColumn.Aligns.Center// sets the alignment in the colum
                });

            grid.Columns.Add(
                new GridViewColumn("lead_name", "Lead/Claim") {
                    Align = GridViewColumn.Aligns.Center// sets the alignment in the colum
                });

            grid.Columns.Add(
                new GridViewColumn("statusName", "Status") {
                    Align = GridViewColumn.Aligns.Center// sets the alignment in the colum
                });

            scheduler.Views.Clear();

            scheduler.Views.Add(new WeekView());
            scheduler.Views.Add(new DayView());
            scheduler.Views.Add(new MonthView());

            grid.Label = "Agenda";

            grid.Select = true;
            grid.Paging = true;

            scheduler.Views.Add(grid);//adds the view to the scheduler
            //scheduler.Views[1].Label = "Agenda";
            scheduler.InitialView = "grid";
        }