Esempio n. 1
0
 void CurrentRequestWindow_PagePreRender(object sender, EventArgs e)
 {
     if (View != null)
     {
         ASPxPivotGridListEditor pivotGridListEditor = View.Editor as ASPxPivotGridListEditor;
         if (pivotGridListEditor != null)
         {
             ASPxPivotGrid pivotGrid = pivotGridListEditor.PivotGridControl;
             pivotGrid.ClientSideEvents.CellClick = String.Format("function(s, e){{{0}}}", XafCallbackManager.GetScript("ViewController1",
                                                                                                                        "e.ColumnIndex.toString() + ';' + e.RowIndex.toString()"
                                                                                                                        + " + ';' + e.ColumnValueType + ';' + e.RowValueType "));
         }
     }
 }
Esempio n. 2
0
        protected override void OnViewControlsCreated()
        {
            base.OnViewControlsCreated();

            CallbackManager.RegisterHandler(handlerId, this);

            ASPxPivotGridListEditor pivotGridListEditor = View.Editor as ASPxPivotGridListEditor;

            if (pivotGridListEditor != null)
            {
                ASPxPivotGrid pivotGrid = pivotGridListEditor.PivotGridControl;
                string        script    = CallbackManager.GetScript(handlerId, "e.ColumnIndex + ';' + e.RowIndex");
                ClientSideEventsHelper.AssignClientHandlerSafe(pivotGrid, "CellClick", "function(s, e) {" + script + "}", "pivotGrid.CellClick");
            }
        }