protected void ASPxDashboard1_CustomParameters(object sender, CustomParametersWebEventArgs e)
        {
            var custIDParameter = e.Parameters.FirstOrDefault(p => p.Name == "CustomerIdDashboardParameter");

            if (custIDParameter != null)
            {
                custIDParameter.Value = "AROUT";
            }
        }
Esempio n. 2
0
 private void dashboard_CustomParameters(object sender, CustomParametersWebEventArgs e)
 {
     if (CustomParameters != null)
     {
         Application.Update(this, () =>
         {
             CustomParameters(sender, e);
         });
     }
 }
Esempio n. 3
0
 public static void DefaultOnCustomParameters(object sender, CustomParametersWebEventArgs e)
 {
     e.Parameters.Add(new DashboardParameter("ReloadingParameter", typeof(Guid), Guid.NewGuid()));
 }
Esempio n. 4
0
        // Configure user-specific data caching
        private static void DashboardConfigurator_CustomParameters(object sender, CustomParametersWebEventArgs e)
        {
            var userName = (string)HttpContext.Current.Session["CurrentUser"];

            e.Parameters.Add(new Parameter("UserRole", typeof(string), userName));
        }
 private static void Default_CustomParameters(object sender, CustomParametersWebEventArgs e)
 {
     e.Parameters.Add(new DashboardParameter("UniqueCacheParam", typeof(Guid), CacheManager.UniqueCacheParam));
 }
Esempio n. 6
0
 protected void ASPxDashboard1_CustomParameters(object sender, CustomParametersWebEventArgs e)
 {
     e.Parameters.Add(new DashboardParameter("ExtractFileName", typeof(string), GetExtractFileName()));
 }
 /// <summary>
 /// Gets the current parameters after a change occured
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void m_DashboardViewer_CustomParameters(object sender, CustomParametersWebEventArgs e)
 {
     m_CurrentDashboardParameters = e.Parameters;
 }
Esempio n. 8
0
        // Configure user-specific data caching
        private void DashboardConfigurator_CustomParameters(object sender, CustomParametersWebEventArgs e)
        {
            var userName = contextAccessor.HttpContext.Session.GetString("CurrentUser");

            e.Parameters.Add(new Parameter("UserRole", typeof(string), userName));
        }