Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/MVCDemos/Views/PivotGrid/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/MVCDemos/Views/PivotGrid/DrillDown.aspx

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="ContentHolder" runat="server">
    <script type="text/javascript">
        var rowIndex;
        var columnIndex;
        function OnCloseDrillDownPopup(s, e) {
            rowIndex = null;
            columnIndex = null;
        }
        function OnPivotGridCellClick(s, e) {
            rowIndex = e.RowIndex;
            columnIndex = e.ColumnIndex;
        
            drillDownGridView.PerformCallback({ "IsResetGridViewPageIndex": true });
            ShowDrillDownPopup();
        }
        function OnGridViewBeginCallback(s, e) {
            e.customArgs["RowIndex"] = rowIndex;
            e.customArgs["ColumnIndex"] = columnIndex;
            pivotGrid.FillStateObject(e.customArgs);
        }
        function ShowDrillDownPopup() {
            var mainElement = pivotGrid.GetMainElement();
            drillDownPopup.ShowAtPos(ASPxClientUtils.GetAbsoluteX(mainElement), ASPxClientUtils.GetAbsoluteY(mainElement));
        }
    </script>
    <p>Click on the Cell to Get the Drill Down Result.</p>
    <%
        Html.RenderPartial("DrillDownPivotGridPartial", Model);
    %>
    <%
        Html.DevExpress().PopupControl(
            settings => {
                settings.Name = "drillDownPopup";
                settings.Modal = true;
                settings.AllowDragging = true;
                settings.Left = 200;
                settings.Top = 200;
                settings.HeaderText = "Drill Down Window";
                settings.ClientSideEvents.Closing = "OnCloseDrillDownPopup";
                settings.SetContent(() => {
                    Html.RenderAction("DrillDownGridViewPartial");
                });
            })
            .Render();
    %>
</asp:Content>