private ASPxDashboardViewer CreateDashboardViewer() { var control = new ASPxDashboardViewer { DashboardId = Definition.Name, RegisterJQuery = true, Width = Unit.Percentage(100) }; control.DashboardLoading += DashboardLoading; control.DataLoading += DataLoading; return(control); }
/// <summary> /// Raised when the dashboard is loaded /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { string preferencesFile = String.Empty; // // Define the Dashboard viewer // m_DashboardViewer = new ASPxDashboardViewer { ID = GetChildControlID("ASPxDashboardViewer"), AllowExportDashboard = m_AllowExportDashboard, ClientInstanceName = m_ClientInstanceName, FullscreenMode = m_FullScreenMode, Width = this.Width, Height = this.Height }; // // Subscribe to dashboard events for loading data // m_DashboardViewer.DataLoading += m_DashboardViewer_DataLoading; m_DashboardViewer.CustomParameters += m_DashboardViewer_CustomParameters; // // Load the dashboard preference file // preferencesFile = HttpContext.Current.Server.MapPath(Path.ChangeExtension(m_DashboardFile, ".pref")); if (File.Exists(preferencesFile)) { m_Preferences = Preferences.GetUserNode("DataSources", preferencesFile); } // // Load the Dashboard // m_DashboardViewer.DashboardSource = m_DashboardFile; base.Controls.Add(m_DashboardViewer); }
private ASPxDashboardViewer CreateDashboardViewer() { var control = new ASPxDashboardViewer{ DashboardId = Definition.Name, RegisterJQuery = true,Width = Unit.Percentage(100)}; control.DashboardLoading += DashboardLoading; control.DataLoading += DataLoading; return control; }
protected override WebControl CreateEditModeControlCore() { _asPxDashboardViewer = CreateDashboardViewer(); return _asPxDashboardViewer; }
protected override WebControl CreateEditModeControlCore() { _asPxDashboardViewer = CreateDashboardViewer(); return(_asPxDashboardViewer); }