protected void ASPxPivotGrid1_PopupMenuCreated(object sender, PivotPopupMenuCreatedEventArgs e)
 {
     for (int i = e.Menu.Items.Count - 1; i >= 0; i--)
     {
         if (e.Menu.Items[i].Text == PivotGridLocalizer.GetString(PivotGridStringId.PopupMenuShowFieldList))
         {
             e.Menu.Items.RemoveAt(i);
         }
     }
 }
Exemplo n.º 2
0
        public ActionResult Layout(long layoutId)
        {
            ViewBag.LayoutId = layoutId;
            if (Request.QueryString.AllKeys.Contains("clearcache"))// && Request.QueryString["clearcache"] == "1")
            {
                RemovePivotViewObjects(layoutId);
            }
            AvrPivotGridModel model = GetModelFromSession(layoutId);

            if (model == null)
            {
                return(View("AvrServiceError", (object)m_ErrorMessage));
            }
            PivotGridFieldBase.DefaultTotalFormat.FormatString = PivotGridLocalizer.GetString(PivotGridStringId.TotalFormat);
            model.IsFirstLoad = true;
            ViewBag.Title     = string.Format(Translator.GetMessageString("webPivotGridTitle"),
                                              ((LayoutDetailDataSet.LayoutRow)(model.PivotSettings.LayoutDataset.Layout.Rows[0])).strLayoutName);
            return(View(model));
        }