Ejemplo n.º 1
0
        public ActionResult PivotGridPartial()
        {
            ViewBag.PivotGridSettings = GetPivotGridSettings();
            var model = new NwindDataClassesDataContext().Invoices;

            return(PartialView("_PivotGridPartial", model));
        }
Ejemplo n.º 2
0
        public ActionResult PivotGridCustomPartial(string FieldID, string[] Values)
        {
            var settigns = GetPivotGridSettings();

            settigns.BeforePerformDataSelect = (s, e) => {
                var pivot = (MVCxPivotGrid)s;
                var field = pivot.Fields[FieldID];

                field.FilterValues.ValuesExcluded = CustomFilterItem.GetValuesExcluded(field, Values);
                Debug.WriteLine(string.Join("; ", Values));
            };
            ViewBag.PivotGridSettings = settigns;
            var model = new NwindDataClassesDataContext().Invoices;

            return(PartialView("_PivotGridPartial", model));
        }