private void Manager_BeforeDrill(object sender, DrillDownEventArgs e) { if (e.DrillDownLevel > 3 && e.IsDrillDown) { e.Cancel = true; } }
private void Manager_AfterDrill(object sender, DrillDownEventArgs e) { if (_cbChartType.SelectedIndex != -1) { switch (e.DrillDownPath) { case "Year": _cbChartType.SelectedIndex = isFlexChartShown ? 0 : 2; break; default: _cbChartType.SelectedIndex = isFlexChartShown ? 1 : 2; break; } } else { flexChart1.ChartType = ChartType.LineSymbols; } flexChart1.Header.Content = string.Format("{0}-wise Sales", e.DrillDownPath); _flexPie.Header.Content = string.Format("{0}-wise Sales", e.DrillDownPath); if (e.IsDrillDown) { if (_paths.ContainsKey(e.DrillDownLevel)) { _paths.Remove(e.DrillDownLevel); } _paths.Add(e.DrillDownLevel, manager.CurrentItems.Name); } UpdateChart(); }
private void Manager_BeforeDrill(object sender, DrillDownEventArgs e) { e.Cancel = !isDrillDownEnabled; if (isDrillDownEnabled && e.IsDrillDown == false && e.DrillDownLevel > 0) { _paths.Remove(e.DrillDownLevel); } }
private void Manager_BeforeDrill(object sender, DrillDownEventArgs e) { if (e.IsDrillDown == false && e.DrillDownLevel > 0) { _paths.Remove(e.DrillDownLevel); } if (e.DrillDownLevel > 3 && e.IsDrillDown) { e.Cancel = true; } }
private void Manager_AfterDrill(object sender, DrillDownEventArgs e) { flexChart1.DataSource = manager.CurrentItems.Views; flexChart1.Header.Content = string.Format("{0}-wise Sales", manager.GroupNames[e.DrillDownLevel]); if (_currentValue != null && manager.CurrentItems.Name == null) { manager.CurrentItems.Name = _currentValue.ToString(); } if (e.IsDrillDown) { if (_paths.ContainsKey(e.DrillDownLevel)) { _paths.Remove(e.DrillDownLevel); } _paths.Add(e.DrillDownLevel, manager.CurrentItems.Name); } UpdateNavBar(); isDrilling = false; }