or
<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="WpfApplication1.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid HorizontalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <telerik:RadButton Click="Button_Click" Grid.Row="0" HorizontalAlignment="Center" Content="Load Appointments" FontWeight="Bold" Margin="12" Padding="18 4" /> <telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" BusyContent="Loading data...."> <Button Height="34" Width="90" Content="xxx"/> </telerik:RadBusyIndicator> </Grid></Window>using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;namespace WpfApplication1{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { busyIndicator.IsBusy = true; System.Threading.Thread.Sleep(100000); busyIndicator.IsBusy = false; } }}Hi
I need to add columns in the header column as shown in the attached design.
|
NOVEMBER |
DECEMBER |
||||||
|
27 |
28 |
29 |
30 |
1 |
2 |
3 |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The columns should be added to the header column. If anyone knows how to do it, please reply.
Thanks
List<int> data = new List<int>();Random rand = new Random(123456);for (int i = 0; i < 50; i++){ data.Add(rand.Next(10, 100));}chartTest.DefaultSeriesDefinition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false };chartTest.DefaultView.ChartArea.AxisX.LabelStep = 25;chartTest.DefaultView.ChartArea.EnableAnimations = false;chartTest.ItemsSource = data;Stream ms = new MemoryStream();chartTest.ExportToImage(ms);/*BitmapImage src = new BitmapImage();src.BeginInit();src.StreamSource = ms;src.EndInit();img1.Source = src;*/