Hi,
I'm trying to create a solution based off the "Dynamic Number of Series" sample in the RadChartView documentation. My xaml looks like this:
<telerik:RadCartesianChart x:Name="chart">
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis Minimum="{Binding XAxisMin}" Maximum="{Binding XAxisMax}">
<telerik:LinearAxis.LabelStyle>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource MainForegroundColor}"/>
</Style>
</telerik:LinearAxis.LabelStyle>
</telerik:LinearAxis>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Minimum="{Binding YAxisMin}" Maximum="{Binding YAxisMax}">
<telerik:LinearAxis.LabelStyle>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource MainForegroundColor}"/>
</Style>
</telerik:LinearAxis.LabelStyle>
</telerik:LinearAxis>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding MyVMs}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:ScatterSeriesDescriptor ItemsSourcePath="PointVMs" XValuePath="XValue" YValuePath="YValue">
<telerik:ScatterSeriesDescriptor.Style>
<Style TargetType="telerik:ScatterPointSeries">
<Setter Property="PointTemplate">
<Setter.Value>
<DataTemplate>
<Ellipse Width="10"
Height="10"
Fill="{Binding Path=DataItem.HighlightColor, RelativeSource={RelativeSource AncestorType=telerik:ChartSeriesProvider}}" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:ScatterSeriesDescriptor.Style>
</telerik:ScatterSeriesDescriptor>
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
</telerik:RadCartesianChart>
I can't seem to find the right combination to gain access to the MyVM.HighlightColor so I can set the Fill in my DataTemplate. Is there a way to do this or is it a case of having to add the color over and over again inside each PointVM?
Thanks for an guidance,
Craig

I have a listBox related with RadTransitionControl , when i change selected item of the listBox , i want to change all the content in the RadTransitionControl
(Inject an other userControl)
Hi,
How can I add a sumfunction to a GridViewExpression column?
for a GridViewDataColumn I simply add:
<telerik:GridViewDataColumn.AggregateFunctions>
<telerik:SumFunction />
</telerik:GridViewDataColumn.AggregateFunctions>
and it works 100%, but when I do it for the same for GridViewExpressionColumn:
<telerik:GridViewExpressionColumn.AggregateFunctions>
<telerik:SumFunction />
</telerik:GridViewExpressionColumn.AggregateFunctions>
I get an error "No Generic method 'Sum' on type 'System.linq.Enumerable' is compatible with the supplied type arguments".
The data in GridViewDataColumns is of Type Decimal, do i need to set the type of the expression column? if so, how?
thanks.
regards,
Matthew
Hello Telerik,
I'm using RadListBox with binding ItemsSource to CollectionViewSource and switched off IsSynchronizedWithCurrentItem...
And it's nessesary to give option select all within keyboard manipulation.
What can you suggest in this case?
With regards, Anatoliy
Hi, I create a diagrampane. When display in the docking, the Diagram shows fast, but the thumbnail shows after a few seconds. Perhaps the diagram has many items, have some method for display the two synchronously?
thanks
Main code:
RadDocumentPane diagramPane = new RadDocumentPane();
MyUserControl diagramUserControl = new MydiagramUserControl(diagram , true);
MyWindow.PaneGroup.Items.Add(diagramUserControl);
MydiagramUserControl code:
MydiagramUserControl(RadDiagram diagram, bool isNeedThumbnail){
InitializeComponent();
this.diagramPane.Children.Add(diagram);
if(isNeedThumbnail){
RadDiagramThumbnail diagramThumbnail = new RadDiagramThumbnail(){Diagram = diagram};
diagramThumbnail.VerticalAlignment = VerticalAlignment.Bottom;
diagramThumbnail.HorizontalAlignment = HorizontalAlignment.Left;
diagramThumbnial.Width = 150;
diagramThumbnail.Height = 100;
this.diagramPane.Children.Add(diagramThumbnail);
}
}
Hi,
I encountered an issue with the RadNumericUpDown control. I have defined the UpdateValueEvent to PropertyChanged, this works fine as long as I am entering valid numeric values. But in case that I just delete the whole text from the NumericUpDown control the value is not updated in my viewmodel because the setter for the binded value is not called. When I leave the RadNumericUpDown afterwards the setter is called correctly and the value in my viewmodel is set to null.
This is my definition in XAML
<telerik:RadNumericUpDown Value="{Binding DurationFrom, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ValueFormat="Numeric" NumberDecimalDigits="0" ShowButtons="True"
Minimum="1" Maximum="{Binding DurationTo, Mode=OneWay, TargetNullValue=1.0}"
NullValue="" UpdateValueEvent="PropertyChanged" />
Is this a known issue with the NumericUpDown control and is there any workaround for this?
Regards,
Micha
Hi,
I am using a RadCartesianChart for displaying ScatteredLineSeries. Here is my Xaml.
<telerik:RadCartesianChart.Behaviors> <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both" /> <telerik:ChartTooltipBehavior /> </telerik:RadCartesianChart.Behaviors>How can i change the cursor on Zoom and Pan?
Where can i get Telerik.Windows.Diagrams.Core.xaml. I cannot find it in:
C:\Program Files (x86)\Telerik\UI for WPF Q1 2016\Themes.Implicit\WPF40\Vista\Themes
Thanks

Hello. When I want to close RadPain and click 'Close' button ('X') in right upper corner of the RadPain then this RadPain is not closed. Below is XAML where RadPain is:
<UserControl x:Class="DeviceReading.Views.DeviceReadingView" xmlns:prism="http://prismlibrary.com/" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" prism:ViewModelLocator.AutoWireViewModel="True"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" Margin="0 5 0 3" Orientation="Horizontal"> <CheckBox Content="Gas velocity" Command="{Binding Path=ShowHideGasVelocityChartViewCommand}" CommandParameter="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}"/> </StackPanel> <telerik:RadDocking Grid.Row="1" Grid.Column="0" x:Name="Docking"> <telerik:RadSplitContainer> <telerik:RadPaneGroup> <telerik:RadPane DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadDocking}}, Path=DataContext}" Header="Gas Velocity" prism:RegionManager.RegionName="GasVelocityChartRegion" IsHidden="{Binding IsGasVelocityChartHidden, Mode=TwoWay}"/> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking> </Grid></UserControl>Below is the definition of ShowHideGasVelocityChartViewCommand command that is bound to Command property of CheckBox:
public DelegateCommand<object> ShowHideGasVelocityChartViewCommand { get; private set; }private void showHideGasVelocityChartView(object parameter){ if ((bool)parameter == true) this.IsGasVelocityChartHidden = true; else this.IsGasVelocityChartHidden = false;}Below is the definition of IsGasVelocityChartHiden property that is bound to IsHidden property of the RadPain.
public bool IsGasVelocityChartHidden{ get { return this._isGasVelocityChartHidden; } set { this.SetProperty(ref this._isGasVelocityChartHidden, !value); }}During application runtime, this RadPain contains View with the dynamically changed chart of gas velocity. This RadPain is shown and hidden by the click on the CheckBox (when the CheckBox is checked then the RadPain is visible, but when the CheckBox is unchecked then the RadPain is invisible - hidden). But I want that this RadPain can ALSO be hidden by clicking of its 'Close' ('X') button that is in the right upper corner of this RadPain. And when the RadPain is closed by clicking its 'Close' ('X') button then the CheckBox must set to Unchecked status so that after I can click on CheckBox, set it to 'Checked' status and visualize the RadPain again. Please help me if this is possible to do it.