Ejemplo n.º 1
0
 private void dashboard_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
 {
     if (SetInitialDashboardState != null)
     {
         Application.Update(this, () =>
         {
             SetInitialDashboardState(sender, e);
         });
     }
 }
        private void Dashboard_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
        {
            string stateJson = LoadDashboardState();

            if (!string.IsNullOrWhiteSpace(stateJson))
            {
                DashboardState state = new DashboardState();
                state.LoadFromJson(stateJson);
                e.InitialState = state;
            }
        }
        private void dashboardViewer1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
        {
            DashboardState          state      = new DashboardState();
            DashboardParameterState parameters = new DashboardParameterState();

            parameters.Name  = "customerIdParameter";
            parameters.Value = new List <string>()
            {
                "ALFKI", "AROUT", "BONAP"
            };
            state.Parameters.Add(parameters);
            e.InitialState = state;
        }
Ejemplo n.º 4
0
        protected void ASPxDashboard1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
        {
            HttpCookie cookie = Request.Cookies["ASPxDashboardState"];

            if (cookie != null)
            {
                DashboardState dashboardState = new DashboardState();
                dashboardState.LoadFromJson(HttpUtility.UrlDecode(cookie.Value));
                if (e.DashboardId == "dashboard1")
                {
                    e.InitialState = dashboardState;
                }
            }
        }
 protected void ASPxDashboard1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
 {
     e.InitialState = InitializeDashboardState();
 }
        private void DashboardViewer1_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
        {
            var state = GetStateFromCustomProperty();

            e.InitialState = state;
        }
 private void DashboardViewer_SetInitialDashboardState(object sender, SetInitialDashboardStateEventArgs e)
 {
     e.InitialState = state;
 }