Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack && !IsCallback)
     {
         StringBuilder stb = new StringBuilder();
         foreach (PivotGridField field in ASPxPivotGrid1.GetFieldsByArea(DevExpress.XtraPivotGrid.PivotArea.DataArea))
         {
             stb.Append(field.ID);
             stb.Append("|");
         }
         ASPxPivotGrid1.JSProperties["cpAllowedFields"] = stb.ToString();
     }
 }