Esempio n. 1
0
        public ActionResult MultipleNodeSelection()
        {
            TreeListMultipleSelectionDemoOptions options = new TreeListMultipleSelectionDemoOptions();

            options.EnableRecursiveSelection = false;
            options.AllowSelectAll           = false;
            options.SelectMode          = "All";
            Session["SelectionOptions"] = options;
            return(DemoView("MultipleNodeSelection", DepartmentsProvider.GetDepartments()));
        }
Esempio n. 2
0
 public ActionResult DataBindingPartial()
 {
     if (DevExpressHelper.IsCallback)
     {
         // Intentionally pauses server-side processing,
         // to demonstrate the Loading Panel functionality.
         Thread.Sleep(500);
     }
     return(PartialView("DataBindingPartial", DepartmentsProvider.GetDepartments()));
 }
        public ActionResult Export()
        {
            TreeListExportDemoOptions options = new TreeListExportDemoOptions()
            {
                EnableAutoWidth = false,
                ExpandAllNodes  = false,
                ShowTreeButtons = false
            };

            Session["TreeListExportOptions"] = options;
            return(DemoView("Export", DepartmentsProvider.GetDepartments()));
        }
 public ActionResult Export([Bind] TreeListExportDemoOptions options)
 {
     Session["TreeListExportOptions"] = options;
     foreach (string typeName in TreeListDemoHelper.ExportTypes.Keys)
     {
         if (Request.Params[typeName] != null)
         {
             return(TreeListDemoHelper.ExportTypes[typeName].Method(
                        TreeListDemoHelper.CreateExportTreeListSettings(options),
                        DepartmentsProvider.GetDepartments()
                        ));
         }
     }
     return(DemoView("Export", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 5
0
 public ActionResult SummaryPartial()
 {
     return(PartialView("SummaryPartial", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 6
0
 public ActionResult Summary()
 {
     return(DemoView("Summary", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 7
0
 public ActionResult MultipleNodeSelectionPartial()
 {
     return(PartialView("MultipleNodeSelectionPartial", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 8
0
 public ActionResult MultipleNodeSelection([Bind] TreeListMultipleSelectionDemoOptions options)
 {
     Session["SelectionOptions"] = options;
     return(DemoView("MultipleNodeSelection", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 9
0
 public ActionResult DataBinding()
 {
     Session["TreeListState"]      = null;
     Session["ShowServiceColumns"] = false;
     return(DemoView("DataBinding", DepartmentsProvider.GetDepartments()));
 }
Esempio n. 10
0
 public ActionResult DataBinding(bool showServiceColumns)
 {
     Session["ShowServiceColumns"] = showServiceColumns;
     return(DemoView("DataBinding", DepartmentsProvider.GetDepartments()));
 }
 public ActionResult ExportPartial()
 {
     return(PartialView("ExportPartial", DepartmentsProvider.GetDepartments()));
 }
 public ActionResult ConditionalFormattingPartial()
 {
     return(PartialView("ConditionalFormattingPartial", DepartmentsProvider.GetDepartments()));
 }
 public ActionResult ConditionalFormatting()
 {
     return(DemoView("ConditionalFormatting", DepartmentsProvider.GetDepartments()));
 }
 public ActionResult Sorting()
 {
     return(DemoView("Sorting", DepartmentsProvider.GetDepartments()));
 }