public IActionResult DefaultFunctionalities() { QueryBuilderRule rule = new QueryBuilderRule() { Condition = "and", Rules = new List <QueryBuilderRule>() { new QueryBuilderRule { Label = "Employee ID", Field = "EmployeeID", Type = "number", Operator = "equal", Value = 1 }, new QueryBuilderRule { Label = "Title", Field = "Title", Type = "string", Operator = "equal", Value = "Sales Manager" } } }; List <string> values = new List <string> { "Mr.", "Mrs." }; ViewBag.rule = rule; ViewBag.values = values; ViewBag.dataSource = EmployeeView.GetAllRecords(); return(View()); }
// GET: ColumnTemplate public ActionResult ColumnTemplate() { var employee = EmployeeView.GetAllRecords(); ViewBag.dataSource = employee; return(View()); }
public IActionResult ColumnTemplate() { var Emp = EmployeeView.GetAllRecords(); ViewBag.datasource = Emp; return(View()); }
// GET: DetailTemplate public ActionResult DetailTemplate() { var DataSource = EmployeeView.GetAllRecords(); ViewBag.dataSource = DataSource; return(View()); }
// GET: GridLines public ActionResult GridLines() { var DataSource = EmployeeView.GetAllRecords(); ViewBag.dataSource = DataSource; ViewBag.data = new string[] { "Default", "Both", "None", "Horizontal", "Vertical" }; return(View()); }
// GET: MasterDetailsExport public ActionResult MasterDetailsExport() { var order = OrdersDetails.GetAllRecords(); ViewBag.Datasource = order; ViewBag.EmpDataSource = EmployeeView.GetAllRecords(); ViewBag.CustomerDataSource = Customer.GetAllRecords(); return(View()); }
// GET: Selection public ActionResult Selection() { var DataSource = EmployeeView.GetAllRecords(); ViewBag.dataSource = DataSource; ViewBag.type = new string[] { "Single", "Multiple" }; ViewBag.mode = new string[] { "Row", "Cell", "Both" }; return(View()); }
public IActionResult Print() { var order = OrdersDetails.GetAllRecords(); ViewBag.Datasource = order; ViewBag.EmpDataSource = EmployeeView.GetAllRecords(); ViewBag.CustomerDataSource = Customer.GetAllRecords(); ViewBag.data = new List <string>() { "Expanded", "All", "None" }; return(View()); }
// GET: Reorder public ActionResult Reorder() { var DataSource = EmployeeView.GetAllRecords(); ViewBag.dataSource = DataSource; List <object> dd = new List <object>(); dd.Add(new { text = "Employee ID", value = "EmployeeID" }); dd.Add(new { text = "Name", value = "FirstName" }); dd.Add(new { text = "Title", value = "Title" }); dd.Add(new { text = "Hire Date", value = "HireDate" }); ViewBag.columns = dd; List <object> index = new List <object>(); index.Add(new { text = "1", value = "0" }); index.Add(new { text = "2", value = "1" }); index.Add(new { text = "3", value = "2" }); index.Add(new { text = "4", value = "3" }); ViewBag.index = index; return(View()); }