Esempio n. 1
0
        public ActionResult HeaderTemplatePartial(QueryTemplateModel.ValueModel args)
        {
            List <Object> Conditions = new List <object>()
            {
                new { text = "AND", value = "and" },
                new { text = "OR", value = "or" }
            };

            ViewBag.Conditions = Conditions;
            return(PartialView("_HeaderTemplatePartial", args.Value));
        }
        public ActionResult RuleTemplatePartial(QueryTemplateModel.ValueModel args)
        {
            List <Object> Items = new List <object>()
            {
                new { field = "USA", label = "USA" },
                new { field = "England", label = "England" },
                new { field = "India", label = "India" },
                new { field = "Spain", label = "Spain" }
            };

            ViewBag.Items = Items;
            return(PartialView("_RuleTemplatePartial", args.Value));
        }