public ActionResult GanttViews() { ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.Gantt; Session[ChartDemoHelper.OptionsKey] = options; Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate; return DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate)); }
public ActionResult RangeViews() { ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.RangeBar; ViewData[ChartDemoHelper.OptionsKey] = options; return(DemoView("RangeViews", OilPricesProvider.GetOilPrices())); }
public ActionResult GanttViews() { ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.Gantt; Session[ChartDemoHelper.OptionsKey] = options; Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate; return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate))); }
public ActionResult GanttViews([Bind] ChartViewTypeDemoOptions options) { Session[ChartDemoHelper.OptionsKey] = options; if (options.View == DevExpress.XtraCharts.ViewType.Gantt) { Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate; return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate))); } else { object model = ProjectsProvider.GetProjectsTasks(); Session[ChartDemoHelper.ModelKey] = model; return(DemoView("GanttViews", model)); } }
public ActionResult RangeViews() { ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.RangeBar; ViewData[ChartDemoHelper.OptionsKey] = options; return DemoView("RangeViews", OilPricesProvider.GetOilPrices()); }
public ActionResult RangeViews([Bind] ChartViewTypeDemoOptions options) { ViewData[ChartDemoHelper.OptionsKey] = options; return(DemoView("RangeViews", OilPricesProvider.GetOilPrices())); }