Telerik Forums
UI for WPF Forum
2 answers
104 views
I have a dialog that shows four charts with a single zoom bar that controls the zoom for each of the four charts. These four charts are inside a tabitem, the next tab item in the control contains another four similar charts that show a different representation of the data. All of the charts are scatter charts and have the same x and y axis ranges.

Zooming works perfectly for the four visible charts, but when I change tab I find that the charts that had been invisible during the zoom have zoomed incorrectly and the datapoints are often off the chart. If I try to zoom on these charts again they suddenly correct themselves and zoom correctly, but switching to the first tab reveals that the first set of charts has now zoomed incorrectly. 

I am currently setting the charts like this: 

//Charts on tab 1
Chart1Tab1.Zoom = new Size(value, value);
Chart2Tab1.Zoom = new Size(value, value);
Chart3Tab1.Zoom = new Size(value, value);
Chart4Tab1.Zoom = new Size(value, value);

//Charts on tab 2 
Chart1Tab2.Zoom = new Size(value, value);
Chart2Tab2.Zoom = new Size(value, value);
Chart3Tab2.Zoom = new Size(value, value);
Chart4Tab2.Zoom = new Size(value, value);

Can you suggest a fix so that both sets of charts zoom at the same time in the same way?

Thanks,

Andy. 
Andrew
Top achievements
Rank 1
 answered on 09 Jan 2014
3 answers
101 views
Hi,

I have a timelineview with vertical grouped resources on the left side of scheduleview.
The Default behavior is that appointments get sorted from the longest to the smallest appointment within a resourcegroup.
Is it possible to sort appointments by their subject within a resourcegroup ??

Kind Regards
Kim
Vladi
Telerik team
 answered on 09 Jan 2014
4 answers
180 views
I have found a problem when using IsSynchronizedWithCurrentItem and removing items from an observable list from code-behind. Using the sample code below, if you:
  • Edit the ThirdItem Name field, then use the Delete button (while still in edit mode), ThirdItem remains on the screen but is successfully deleted from the code-behind. You can see this by sorting by any column, and the list gets redrawn correctly.
  • Edit SecondItem Name field, then use the Delete button (while still in edit mode), the list now shows one Firstitem and two ThirdItems! Again, sorting redraws the list correctly.
There are various other strange scenarios with removing items. I haven't been able to reproduce it in the simple example, but in my application there are scenarios where more than one row are removed from the UI on delete (but fine in the ObservableCollection behind), and others where you can delete multiple rows and get one of the deleted rows to show back up (even though it doesn't exist in the Observable Collection). In all these cases, sorting again refreshes the list correctly.

This simple example seem to work fine without the IsSynchronizedWithCurrentItem flag, but my actual application still has similar problems without this flag set when deleting the item currently being edited, so I'm not sure if it's related.

Example Code:

MainWindow.xaml:
<Window x:Class="SortedChangingList.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGridView
                    IsSynchronizedWithCurrentItem="True"
                    AutoGenerateColumns="False"
                    ItemsSource="{Binding ItemCollection}"
                    SelectionMode="Single">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Name}"
                                            Header="Name" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Comment}"
                                            Header="Comment" />
                <telerik:GridViewColumn>
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <Button
                            Command="{Binding DataContext.DeleteCommand,
                            RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"
                            CommandParameter="{Binding }">Delete Me</Button>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

MainWindow.xaml.cs:
using System;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
 
namespace SortedChangingList
{
    public class Item
    {
        public string Name { get; set; }
        public string Comment { get; set; }
    }
    public partial class MainWindow : Window
    {
        private RelayCommand _DeleteCommand;
        public ObservableCollection<Item> ItemCollection { get; set; }
        public ICommand DeleteCommand
        {
            get
            {
                return _DeleteCommand ?? (_DeleteCommand = new RelayCommand(DeleteItem));
            }
        }
        public MainWindow()
        {
            ItemCollection = new ObservableCollection<Item>();
            ItemCollection.Add(new Item() { Name = "FirstItem" });
            ItemCollection.Add(new Item() { Name = "SecondItem" });
            ItemCollection.Add(new Item() { Name = "ThirdItem" });
 
            InitializeComponent();
 
            DataContext = this;
        }
        private void DeleteItem(object obj)
        {
            Item item = obj as Item;
            ItemCollection.Remove(item);
        }
    }
 
    public class RelayCommand : ICommand
    {
        private readonly Action<object> _Execute;
        public RelayCommand(Action<object> execute)
        {
            _Execute = execute;
        }
        public bool CanExecute(object parameter)
        {
            return true;
        }
        public event EventHandler CanExecuteChanged
        {
            add { CommandManager.RequerySuggested += value; }
            remove { CommandManager.RequerySuggested -= value; }
        }
        public void Execute(object parameter)
        {
            _Execute(parameter);
        }
    }
}

Louis

Vera
Telerik team
 answered on 08 Jan 2014
1 answer
362 views
 Hi .
 
 I am using RadWindow.Alert  for Message.
 I want to change alert image can any one help me to do this.
 I am following http://www.telerik.com/help/wpf/radwindow-features-predefined-dialogs.html .
 

 
Kalin
Telerik team
 answered on 08 Jan 2014
1 answer
330 views
Hi,

How do I use ScrollIntoView so the row I scroll to is top of the grid, now it's at bottom.

A workaround is to scroll to bottom first then ScrollIntoView but then then grid flickers/jumps and it don't look good.


Hristo
Telerik team
 answered on 08 Jan 2014
5 answers
117 views
I updated to 2013.3.1016.45.

After update the application is unable to start with the following error

InvalidCastException:

   at Telerik.Windows.Controls.RadToggleButton.OnCornerRadiusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Buttons\RadToggleButton.cs:line 408
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.StyleHelper.ApplyStyleOrTemplateValue(FrameworkObject fo, DependencyProperty dp)
   at System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents)
   at System.Windows.StyleHelper.DoStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle)
   at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
   at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.StyleHelper.ApplyTemplatedParentValue(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, DependencyProperty dp, FrameworkElementFactory templateRoot)
   at System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
   at System.Windows.FrameworkTemplate.InvalidatePropertiesOnTemplate(DependencyObject container, Object currentObject)
   at System.Windows.FrameworkTemplate.<>c__DisplayClass6.<LoadOptimizedTemplateContent>b__3(Object sender, XamlObjectEventArgs args)
   at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
Tina Stancheva
Telerik team
 answered on 08 Jan 2014
3 answers
116 views
I have a grid that is bound to a table in EF. I recently changed the design and I am getting the following exception.

Entities in 'CFETSDBContainer.FREQUENCIES' participate in the 'FREQUENCYFreqPool' relationship. 0 related 'FreqPool' were found. 1 'FreqPool' is expected.

Why it is doing this is obvious, but I don't know HOW to fix it. When the user enters a new row in the data grid and commits it, it needs to create the new FREQ_POOL and FREQ_TYPE entries as well.

FREQ_POOL and FREQ_TYPE are base classes, and so I need to manually set the types of both and set their properties in the code-behind I believe.

How do I do this? I have only done simple databinding. Here is my code.


<DataGrid  AutoGenerateColumns="False" Height="278" HorizontalAlignment="Left" Margin="24,31,0,0" Name="dgIA" VerticalAlignment="Top" Width="520" Loaded="dataGrid1_Loaded" RowEditEnding="dgIA_RowEditEnding" DataContext="{Binding}">
        <DataGrid.Columns>
 
            <DataGridComboBoxColumn DisplayMemberPath="Name" Header="GACC" SelectedValuePath="{Binding Name}" x:Name="cbGACCS" SelectedValueBinding="{Binding ZONE.GACC,Mode=TwoWay}" />           
            <DataGridComboBoxColumn DisplayMemberPath="Name" Header="Zones" SelectedValuePath="{Binding Name}" x:Name="cbZONES" SelectedValueBinding="{Binding ZONE,Mode=TwoWay}" />               
            <DataGridTextColumn Header="Frequency" Binding="{Binding Path=Frequency,Mode=TwoWay}"/>
 
            <DataGridComboBoxColumn Header="Frequency Type" x:Name="cbFT"  SelectedValueBinding="{Binding Path=FrequencyType,Mode=TwoWay}"/>
            <DataGridComboBoxColumn  Header="Owner" x:Name="cbOwner" SelectedValueBinding="{Binding Path=Owner,Mode=TwoWay}" /> 
 
            <DataGridTextColumn Header="Usage Type" Binding="{Binding Path=UsageType,Mode=TwoWay}"/>
            <DataGridTextColumn Header="Comments" Binding="{Binding Path=Comments,Mode=TwoWay}"/>
            <DataGridTextColumn Header="Serial #" Binding="{Binding Path=Serial,Mode=TwoWay}"/>
 
        </DataGrid.Columns>
    </DataGrid>
Code behind:
   private void dgIA_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e)
    {
        if (!isManualEditCommit)
        {
            isManualEditCommit = true;
 
                DataGrid grid = (DataGrid)sender;
                grid.CommitEdit(DataGridEditingUnit.Row, true);
                ctx.SaveChanges();
 
            isManualEditCommit = false;
        }     
 
    }
}



And here as a screen shot of my EDM that I am referring to.
http://imgbin.org/index.php?page=image&id=16176

How can I achieve this kind of row insert? Thanks.
Hristo
Telerik team
 answered on 08 Jan 2014
1 answer
93 views
When you save a layout the header and title is also persisted. Is there an easy way to ignore the persisted header and always use the one currently defined header from the XAML. Over time a header might change for a RadPane, and we want the users to see the new header, not the old persisted header.

In the element loaded event it's possible to set the header, but how would I get the current header from the "real" RadPane and not the persisted one?

Best regards
Arnstein Volden


Telerik version: 2013.3.1204.40
Kalin
Telerik team
 answered on 08 Jan 2014
1 answer
432 views
Plz help me with this I have to use the AreaSeries inside CartesianChart along side with another charts but i cannot be cause of the error "A value of type 'AreaSeries' cannot be added to a collection of dictionary of type presenter Collection '1'."
and here is my code:
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             x:Class="Concord.HIS.Dashboard.UserControls.LabTestOverallUserControl"
             mc:Ignorable="d"
             d:DesignHeight="800"
             d:DesignWidth="900">
    <Grid>
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <ListBox x:Name="TopTenLabTestsListBox"
                         ItemsSource="{Binding TopTenLabTests}"
                         ItemContainerStyle="{StaticResource ToptenListItem}" />
                <telerik:RadChart MaxWidth="300"
                                  MaxHeight="200"
                                  ItemsSource="{Binding ClinicPieChartdata}"
                                  Margin="15 0 15 0">
                    <telerik:RadChart.SeriesMappings>
                        <telerik:SeriesMapping>
                            <telerik:SeriesMapping.SeriesDefinition>
                                <telerik:PieSeriesDefinition ItemLabelFormat="#%{p0}"
                                                             ShowItemLabels="True" />
                            </telerik:SeriesMapping.SeriesDefinition>
                            <telerik:SeriesMapping.ItemMappings>
                                <telerik:ItemMapping  DataPointMember="YValue"
                                                      FieldName="Count" />
                                <telerik:ItemMapping  DataPointMember="LegendLabel"
                                                      FieldName="Lable" />
                            </telerik:SeriesMapping.ItemMappings>
                        </telerik:SeriesMapping>
                    </telerik:RadChart.SeriesMappings>
                </telerik:RadChart>
                <telerik:RadChart MaxWidth="300"
                                  MaxHeight="200"
                                  ItemsSource="{Binding ClinicPieChartdata}">
                    <telerik:RadChart.DefaultView>
                        <telerik:ChartDefaultView>
                            <telerik:ChartDefaultView.ChartLegend>
                                <telerik:ChartLegend Width="0" />
                            </telerik:ChartDefaultView.ChartLegend>
                        </telerik:ChartDefaultView>
                    </telerik:RadChart.DefaultView>
                    <telerik:RadChart.SeriesMappings>
                        <telerik:SeriesMapping>
                            <telerik:SeriesMapping.ItemMappings>
                                <telerik:ItemMapping  DataPointMember="YValue"
                                                      FieldName="Count" />
                                <telerik:ItemMapping  DataPointMember="XValue"
                                                      FieldName="Lable" />
                            </telerik:SeriesMapping.ItemMappings>
                        </telerik:SeriesMapping>
                    </telerik:RadChart.SeriesMappings>
                </telerik:RadChart>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0 5 0 0">
                <StackPanel Width="{Binding ElementName=TopTenLabTestsListBox,Path=Width}">
                    <StackPanel Orientation="Horizontal">
                        <StackPanel Width="175">
                            <TextBlock Text="Most used lab test:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.Name}" VerticalAlignment="Center" Margin="5 0 0 0"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Clinic ordered this test the most:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.ClinicName}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Doctor ordered this test the most:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.DoctorName}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Most orders in one day:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.MostOrderedInOneDay}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Most diagnosis this lab test was ordered for:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.MostDiagnosis}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Number of children who used this test:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.ChildrenNumber}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Number of children who used this test:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.ChildrenNumber}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0 5 0 0">
                        <StackPanel Width="175">
                            <TextBlock Text="Lab test total orders:"
                                       TextWrapping="Wrap" />
                        </StackPanel>
                        <TextBlock Text="{Binding MostUsedLabTest.TotalUsed}"
                                   VerticalAlignment="Center"
                                   Margin="5 0 0 0" />
                    </StackPanel>
                </StackPanel>
                <StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <telerik:RadChart MaxWidth="200"
                                          MaxHeight="200"
                                          ItemsSource="{Binding ClinicPieChartdata}"
                                          Margin="15 0 15 0">
                            <telerik:RadChart.SeriesMappings>
                                <telerik:SeriesMapping>
                                    <telerik:SeriesMapping.SeriesDefinition>
                                        <telerik:PieSeriesDefinition ItemLabelFormat="#%{p0}"
                                                                     ShowItemLabels="True" />
                                    </telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping  DataPointMember="YValue"
                                                              FieldName="Count" />
                                        <telerik:ItemMapping  DataPointMember="LegendLabel"
                                                              FieldName="Label" />
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                            </telerik:RadChart.SeriesMappings>
                        </telerik:RadChart>
                        <telerik:RadChart MaxWidth="200"
                                          MaxHeight="200"
                                          ItemsSource="{Binding ClinicPieChartdata}">
                            <telerik:RadChart.DefaultView>
                                <telerik:ChartDefaultView>
                                    <telerik:ChartDefaultView.ChartLegend>
                                        <telerik:ChartLegend Width="0" />
                                    </telerik:ChartDefaultView.ChartLegend>
                                </telerik:ChartDefaultView>
                            </telerik:RadChart.DefaultView>
                            <telerik:RadChart.SeriesMappings>
                                <telerik:SeriesMapping>
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping  DataPointMember="YValue"
                                                              FieldName="Count" />
                                        <telerik:ItemMapping  DataPointMember="XValue"
                                                              FieldName="Label" />
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                            </telerik:RadChart.SeriesMappings>
                        </telerik:RadChart>
                        <telerik:RadChart MaxWidth="200"
                                          MaxHeight="200"
                                          ItemsSource="{Binding ClinicPieChartdata}"
                                          Margin="15 0 0 0">
                            <telerik:RadChart.SeriesMappings>
                                <telerik:SeriesMapping>
                                    <telerik:SeriesMapping.SeriesDefinition>
                                        <telerik:PieSeriesDefinition ItemLabelFormat="#%{p0}"
                                                                     ShowItemLabels="True" />
                                    </telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping  DataPointMember="YValue"
                                                              FieldName="Count" />
                                        <telerik:ItemMapping  DataPointMember="LegendLabel"
                                                              FieldName="Label" />
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                            </telerik:RadChart.SeriesMappings>
                        </telerik:RadChart>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="12,6,0,20">
                            <TextBlock>
                <Run Text="Date:" FontFamily="Segoe UI" FontSize="12" />
                <Run x:Name="date" Text="Mar 18, 2012" FontFamily="Segoe UI" FontSize="16" />
                            </TextBlock>
                            <TextBlock Margin="10,0,0,0">
                <Run Text="Count:" FontFamily="Segoe UI" FontSize="12" />
                <Run x:Name="count" Text="5,976,129" FontFamily="Segoe UI" FontSize="16"  />
                            </TextBlock>
                        </StackPanel>
                        <telerik:RadCartesianChart Grid.Row="1" Margin="10,0,10,30"
                                 TrackBallLineStyle="{StaticResource trackBallLineStyle}"
                                 TrackBallInfoStyle="{StaticResource trackBallInfoStyle}"
                                   x:Name="cChart"
                                   Background="AliceBlue">
                            <telerik:RadCartesianChart.Resources>
                                <DataTemplate x:Key="PointTemplate">
                                    <Ellipse Height="8" Width="8" Stroke="White" StrokeThickness="1" Fill="#1B9DDE" />
                                </DataTemplate>
                                <Style x:Key="BorderStyle" TargetType="Border">
                                    <Setter Property="Background" Value="#1B9DDE" />
                                </Style>
                            </telerik:RadCartesianChart.Resources>
                            <telerik:RadCartesianChart.Behaviors>
                                <telerik:ChartTooltipBehavior Placement="Top" HorizontalOffset="-6" VerticalOffset="1" />
                                <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" />
                                <telerik:ChartTrackBallBehavior ShowIntersectionPoints="True" TrackInfoUpdated="ChartTrackBallBehavior_TrackInfoUpdated" />
                                <telerik:ChartTooltipBehavior Placement="Top" HorizontalOffset="-6" VerticalOffset="1" />
                            </telerik:RadCartesianChart.Behaviors>
                            <telerik:AreaSeries x:Name="Chart"
                                CategoryBinding="RigestirationDate"
                                ValueBinding="Count"
                                Fill="#2625A0DA"
                                Stroke="#FF25A0DA"
                                telerik:StyleManager.Theme="Windows8"
                                StrokeThickness="2"
                                TrackBallTemplate="{StaticResource trackBallTemplate}"
                                Visibility="Visible">
                                <telerik:AreaSeries.VerticalAxis>
                                    <telerik:LinearAxis >
                                    </telerik:LinearAxis>
                                </telerik:AreaSeries.VerticalAxis>
                            </telerik:AreaSeries>
                            <telerik:RadCartesianChart.HorizontalAxis>
                                <telerik:DateTimeCategoricalAxis DateTimeComponent="Ticks" PlotMode="OnTicks" MajorTickInterval="30"  LabelFormat="dd MM yyyy"
                                                   MajorTickStyle="{StaticResource tickStyle}" />
                            </telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:RadCartesianChart.VerticalAxis>
                                <telerik:LinearAxis />
                            </telerik:RadCartesianChart.VerticalAxis>
                            <telerik:RadCartesianChart.Grid>
                                <telerik:CartesianChartGrid StripLinesVisibility="None" MajorLinesVisibility="XY">
                                    <telerik:CartesianChartGrid.YStripeBrushes>
                                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                                        <SolidColorBrush Color="Transparent" />
                                    </telerik:CartesianChartGrid.YStripeBrushes>
                                </telerik:CartesianChartGrid>
                            </telerik:RadCartesianChart.Grid>
                        </telerik:RadCartesianChart>
 
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
Peshito
Telerik team
 answered on 08 Jan 2014
13 answers
1.4K+ views
Hi,
Is there a way to format the display date, instead of mm/dd/yyyy I need to just display mm/yyyy.  I don't see the DisplayDateFormat property available in WPF, is there a way to do this?

Thanks,
Nate
Yana
Telerik team
 answered on 08 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?