I am painting a series series line dynamically, all those link to its context viewmodel, now the problem is that when drawing more than one series they begin to distort, now as you can see in the image, when hidden by in the middle of a CheckBox of his legend the others and I just leave one this goes well, the first hurts the second, and the second to the third, and so on, already e checking the values, and those are correct, I think I have problems with the horizontal axis, but I don't know how to solve it. It can be seen in the image of how it looks. Here I leave the same as the xaml where I work. Can someone help me what is happening
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:DISTRIBUCION_GAS.Views"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:clases="clr-namespace:DISTRIBUCION_GAS.Clases"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:PENDIENTES_IGUALES="clr-namespace:PENDIENTES_IGUALES;assembly=PENDIENTES_IGUALES"
x:Class="DISTRIBUCION_GAS.Views.LiquidoGasView"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<clases:BoolColor x:Key="colorCombobox"/>
<!--<DataTemplate x:Key="ComboBoxCustomTemplate">
<TextBlock Foreground="{Binding ESTATUS, Converter={StaticResource colorCombobox}}" FontSize="10" FontWeight="Bold" Text="{Binding NOMBRE}" />
</DataTemplate>-->
<DataTemplate x:Key="contenidoTemplate">
<Grid>
<local:PozoView DataContext="{Binding objCabeceraPozoGBN, Mode=TwoWay}"/>
</Grid>
</DataTemplate>
<telerik:VisibilityToBooleanConverter x:Key="visibilityToBooleanConverter" />
</UserControl.Resources>
<Grid>
<GroupBox Header="Produción de líquido vs Inyección de Gas" FontWeight="Bold" Margin="1,5,1,1" FontSize="14">
<Grid Margin="1,5,1,1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="280"/>
<ColumnDefinition Width="280*"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="155*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
<telerik:RadComboBox Text="Selecione un Pozo" Width="108" Margin="5,0,0,0" Foreground="{Binding ESTATUS, Converter={StaticResource colorCombobox}}" ItemsSource="{Binding ListaPA_GetPozoGasBN_Result, Mode=TwoWay}" SelectedItem="{Binding objPA_GetPozoGasBN_Result, Mode=TwoWay}" >
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Foreground="{Binding ESTATUS, Converter={StaticResource colorCombobox}}" FontSize="10" FontWeight="Bold" Text="{Binding NOMBRE}" />
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>
<telerik:RadButton Command="{Binding BtnAgregarPozo}" Height="Auto" IsEnabled="{Binding habilitarAgregar, Mode=TwoWay}" Width="Auto" Margin="5,0,0,0">
<telerik:RadGlyph Glyph="" Foreground="Black" FontSize="20" />
</telerik:RadButton>
<telerik:RadButton Command="{Binding BtnEditarPozo}" IsEnabled="{Binding habilitarEditar, Mode=TwoWay}" Height="Auto" Width="Auto" Margin="5,0,0,0">
<telerik:RadGlyph Glyph="" Foreground="Black" FontSize="20" />
</telerik:RadButton>
<telerik:RadButton Height="Auto" Command="{Binding BtnEliminarPozo}" IsEnabled="{Binding habilitarEditar, Mode=TwoWay}" Width="Auto" Margin="5,0,0,0">
<telerik:RadGlyph Glyph="" Foreground="Black" FontSize="20" />
</telerik:RadButton>
<CheckBox Margin="5,5,1,1" IsChecked="{Binding gastosAgua, Mode=TwoWay}" />
<Label Margin="1,0,1,1" Content="% Agua" FontWeight="Normal" FontSize="10" />
</StackPanel>
<telerik:RadTabControl Grid.Row="1" ItemsSource="{Binding ListaPozoCabecera, Mode=TwoWay}" SelectedItem="{Binding objPozoCabecera, Mode=TwoWay}" DisplayMemberPath="Nombre" ContentTemplate="{StaticResource contenidoTemplate}"/>
</Grid>
<telerik:RadCartesianChart Grid.Column="1" Margin="5" x:Name="rccgrafica" FontSize="10"><br> <telerik:RadCartesianChart.Grid><br> <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5"><br> <telerik:CartesianChartGrid.MajorYLineStyle><br> <Style TargetType="{x:Type Line}"><br> <Setter Property="Stroke" Value="Gray"/><br> </Style><br> </telerik:CartesianChartGrid.MajorYLineStyle><br> <telerik:CartesianChartGrid.MajorXLineStyle><br> <Style TargetType="{x:Type Line}"><br> <Setter Property="Stroke" Value="Gray"/><br> </Style><br> </telerik:CartesianChartGrid.MajorXLineStyle><br> </telerik:CartesianChartGrid><br> </telerik:RadCartesianChart.Grid><br> <telerik:RadCartesianChart.HorizontalAxis><br> <telerik:CategoricalAxis Title="QGAS de BN [Mscf/D]"/><br> </telerik:RadCartesianChart.HorizontalAxis><br> <telerik:RadCartesianChart.VerticalAxis><br> <telerik:LinearAxis Title="QLiquido [STB/D]"/><br> </telerik:RadCartesianChart.VerticalAxis><br> <telerik:RadCartesianChart.Behaviors><br> <telerik:ChartPanAndZoomBehavior ZoomMode="Both" /><br> <telerik:ChartCrosshairBehavior /><br> </telerik:RadCartesianChart.Behaviors><br> <telerik:RadCartesianChart.SeriesProvider><br> <telerik:ChartSeriesProvider Source="{Binding ListaPozoCabecera, Mode=TwoWay}"><br> <telerik:CategoricalSeriesDescriptor ItemsSourcePath="CondicionesOperacion.DatosInyeccion" CategoryPath="qGasBN" ValuePath="qLiq"><br> <telerik:CategoricalSeriesDescriptor.Style><br> <Style TargetType="{x:Type telerik:LineSeries}"><br> <Setter Property="StrokeThickness" Value="{Binding SizeL}" /><br> <Setter Property="LegendSettings" ><br> <Setter.Value><br> <telerik:SeriesLegendSettings Title="{Binding Nombre}" /><br> </Setter.Value><br> </Setter><br> <Setter Property="Stroke" Value="{Binding Background, Mode=TwoWay}" /><br> <Setter Property="ToolTip" ><br> <Setter.Value><br> <StackPanel><br> <TextBlock Text="{Binding Nombre, Mode=TwoWay}"/><br> </StackPanel><br> </Setter.Value><br> </Setter><br> <Setter Property="Visibility" Value="{Binding Visibility, Mode=TwoWay}" /><br><br> </Style><br> </telerik:CategoricalSeriesDescriptor.Style><br> </telerik:CategoricalSeriesDescriptor><br> <telerik:CategoricalSeriesDescriptor ItemsSourcePath="CondicionesOperacion.ListaDatos" CategoryPath="qGasBN" ValuePath="qLiquido"><br> <telerik:CategoricalSeriesDescriptor.Style><br> <Style TargetType="{x:Type telerik:PointSeries}"><br> <Setter Property="ToolTip" Value="{Binding Nombre, Mode=TwoWay}"/><br> <Setter Property="Visibility" Value="{Binding Visibility, Mode=TwoWay}" /><br> <Setter Property="PointSize" Value="{Binding SizeP}" /><br> <Setter Property="DefaultVisualStyle"><br> <Setter.Value><br> <Style TargetType="{x:Type Path}"><br> <Setter Property="Fill" Value="{Binding Background}" /><br> </Style><br> </Setter.Value><br> </Setter><br> <br> </Style><br> </telerik:CategoricalSeriesDescriptor.Style><br> </telerik:CategoricalSeriesDescriptor><br> </telerik:ChartSeriesProvider><br> </telerik:RadCartesianChart.SeriesProvider><br> </telerik:RadCartesianChart>
<telerik:RadLegend Items="{Binding LegendItems, ElementName=rccgrafica}" Grid.Column="2" >
<telerik:RadLegend.ItemsPanel>
<ItemsPanelTemplate>
<telerik:RadWrapPanel />
</ItemsPanelTemplate>
</telerik:RadLegend.ItemsPanel>
<telerik:RadLegend.ItemTemplate>
<DataTemplate>
<Border Background="{Binding MarkerFill}" BorderThickness="1" BorderBrush="{Binding MarkerStroke}">
<Grid Width="95">
<CheckBox Checked="CheckBox_Checked" IsChecked="{Binding Presenter.Visibility, Converter={StaticResource visibilityToBooleanConverter}, Mode=TwoWay}" FontSize="10"/>
<TextBlock Text="{Binding Title}" Foreground="White" Margin="15,2,0,2" FontWeight="Normal" FontSize="10" />
</Grid>
</Border>
</DataTemplate>
</telerik:RadLegend.ItemTemplate>
</telerik:RadLegend>
</Grid>
</GroupBox>
</Grid>
</UserControl>
________________________________________________
MODELVIEW
private ObservableCollection<PozoCabecera> _ListaPozoCabecera;
public ObservableCollection<PozoCabecera> ListaPozoCabecera
{
get
{
return _ListaPozoCabecera;
}
set
{
_ListaPozoCabecera = value;
if (value.Count>0)
{
Global.objVariableEntradaViewModel.HabilitarOpciones = true;
objPozoCabecera = value[0];
Global.objVariableEntradaViewModel.TotalGas = _ListaPozoCabecera.Sum(x => x.objCabeceraPozoGBN.qGasBN).GetValueOrDefault();
Global.objVariableEntradaViewModel.TotalLiq = _ListaPozoCabecera.Sum(x => x.objCabeceraPozoGBN.qLiquido).GetValueOrDefault();
}
else
{
Global.objVariableEntradaViewModel.HabilitarOpciones = false;
Global.objVariableEntradaViewModel.opcion = null;
Global.objVariableEntradaViewModel.TotalGas = 0;
Global.objVariableEntradaViewModel.TotalLiq = 0;
}
this.OnPropertyChanged("ListaPozoCabecera");
}
}
Hi,
I need help customizing the default trackinfo tooltip for showing multiple line series values in the same tooltip at once (or achieve a tooltip similar to the one from the 'First Look' -see attached image).
I've been able to customize bar series tooltips in the past by doing something like the following, but using the same thing for line series doesn't show anything (it also only shows one series value at a time which isn't really what I'm trying to do):
<telerik:RadCartesianChart.Behaviors> <telerik:ChartTooltipBehavior/></telerik:RadCartesianChart.Behaviors> <telerik:RadCartesianChart.TooltipTemplate> <DataTemplate><Border Background="White" BorderBrush="Black" BorderThickness="1" Padding="5" CornerRadius="3"><StackPanel><StackPanel Orientation="Horizontal"><TextBlock Text="Tool Tip!" /></StackPanel><StackPanel Orientation="Horizontal"><TextBlock Text="{Binding Label}" /></StackPanel><StackPanel Orientation="Horizontal"><TextBlock Text="{Binding Category}" /></StackPanel><StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Value}" /></StackPanel> </StackPanel></Border> </DataTemplate> </telerik:RadCartesianChart.TooltipTemplate>
I can also show the default "Category: xxxx Value: xxxx" tooltip for multiple line series at once with this:
<telerik:RadCartesianChart.Behaviors><telerik:ChartTrackBallBehavior ShowIntersectionPoints="True" ShowTrackInfo="True"/></telerik:RadCartesianChart.Behaviors>
Is there any way to customize the "ShowTrackInfo" tooltip? I haven't been able to reapply the first look example directly because I'm dynamically adding/removing/changing the number of series in the chart. I'm doing that like this:
private void UpdateChart() { LineTrendChart.Series.Clear(); LineTrendChart.VerticalAxis = new LinearAxis(); LineTrendChart.HorizontalAxis = new CategoricalAxis(); for (int seriesIncrementer = 0; seriesIncrementer < numberOfSeries; seriesIncrementer++) { CategoricalSeries series1 = new LineSeries(); for (int i = 0; i < numberOfDataPointsToDisplay; i++) { series1.DataPoints.Add(new CategoricalDataPoint { Value = RawData[seriesIncrementer][i], Category = DateList[i].ToString("MM/dd") }); } LineTrendChart.Series.Add(series1); } }
My gut tells me I'm missing something very simple but I've been at this for a little while and haven't gotten anywhere .
Thanks in advance for any help.
Hello Telerik,
I have an issue when I try using your IsBusy property inside a grid.
Happens that the panel won't disappear. I tried using several of those "Loaded" events to make it happen manually (grid.IsBusy = false;), but then it won't even show at all.
I am using virtualization and infinite scrolling in my grid.
I just need a solution to hide the spinner when the data finish loading.
here is my code:
MainWindow.xaml
<Window x:Class="TelerikVirtualization.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="900" Width="700" > <Window.Resources> <Style x:Key="VitorStyle" TargetType="telerik:RadGridView" > <Setter Property="AutoGenerateColumns" Value="False"></Setter> <Setter Property="FilteringMode" Value="FilterRow"></Setter> </Style> </Window.Resources> <Grid> <Grid.Resources> <DataTemplate x:Key="RowDetailsTemplate"> <telerik:RadGridView Name="playersGrid" Style="{StaticResource VitorStyle}" IsBusy="True" ItemsSource="{Binding Children}" > <telerik:RadGridView.ControlPanelItems> <telerik:ControlPanelItem ButtonTooltip="Column chooser"> <telerik:ControlPanelItem.Content> <ListBox ItemsSource="{Binding Columns}" BorderThickness="0"> <ListBox.ItemTemplate> <DataTemplate> <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </telerik:ControlPanelItem.Content> </telerik:ControlPanelItem> </telerik:RadGridView.ControlPanelItems> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding ParentID}"/> </telerik:RadGridView.Columns> </telerik:RadGridView> </DataTemplate> </Grid.Resources> <telerik:RadGridView Name="RadGridView" ItemsSource="{Binding View}" Style="{StaticResource VitorStyle}" IsBusy="True" RowDetailsTemplate="{StaticResource RowDetailsTemplate}" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewToggleRowDetailsColumn/> <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding UnitPrice}" Header="UnitPrice" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Date}" Header="Date" DataFormatString="{}{0:dd/MM/yyyy}"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Discontinued}"/> </telerik:RadGridView.Columns> <telerik:RadGridView.ControlPanelItems> <telerik:ControlPanelItem ButtonTooltip="Column chooser"> <telerik:ControlPanelItem.Content> <ListBox ItemsSource="{Binding Columns}" BorderThickness="0"> <ListBox.ItemTemplate> <DataTemplate> <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </telerik:ControlPanelItem.Content> </telerik:ControlPanelItem> </telerik:RadGridView.ControlPanelItems> </telerik:RadGridView> </Grid></Window>MainWindow.xaml.cs
using System.ComponentModel;using System.Windows;namespace TelerikVirtualization{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { BackgroundWorker worker = new BackgroundWorker(); public MainWindow() { InitializeComponent(); DataContext = new ViewModel(); } }ViewModel.cs *(install Fody.PropertyChanged nugget to make have it compiling)
using PropertyChanged;using System;using System.Collections.Generic;using System.Collections.ObjectModel;using Telerik.Windows.Data;using System.Linq;using System.Collections;namespace TelerikVirtualization{ [ImplementPropertyChanged]* public class ViewModel { public VirtualQueryableCollectionView View { get; set; } Controller controller; public ViewModel() { controller = new Controller(); View = new VirtualQueryableCollectionView(controller.GetList()) { LoadSize = 10 }; } } }Controller.cs
using System; using System.Linq;namespace TelerikVirtualization{ public class Controller { public IQueryable GetList() { DataClasses1DataContext context = new DataClasses1DataContext(); var result = from x in context.MyTables select new MyTableEntity() { Date = x.Date.GetValueOrDefault(DateTime.Now), Name = x.Name, UnitPrice = x.UnitPrice.GetValueOrDefault(0), id = x.ID, Discontinued = x.Discontinued, Children = (from y in context.MyChildTables where y.ParentID == x.ID select new MyChildTableEntity { ID = y.ID, Name = y.Name, ParentID = y.ParentID }) }; return result; } } public class MyTableEntity { public int id { get; set; } public string Name { get; set; } public decimal UnitPrice { get; set; } public DateTime Date { get; set; } public object Children { get; set; } public bool ? Discontinued { get; set; } } public class MyChildTableEntity { public int ID { get; set; } public string Name { get; set; } public int ? ParentID { get; set; } } }
Thank you.

Hi!
how can I set a Tips when RadDiagramShape MouseOver。
I want to Lock the Diagram,but want the Element event can work.
if I Set the IsEnabled is false . (RadDiagramShape_MouseMove) is not Working
Hi!
I am using RadDiagram and in my diagram.
how can I Show a Text Tips when RadDiagramShape MouseOver ?
Thanks
Hello,
I have a spline series on a cartesian graph, the y values can vary from -750000 to 1000000. I would like to display the labels as multiples of .0001 to save some screen space. I can't see a property to do it.
Thanks.
Alan

Saw instructions on how to use tags GroupByExpression, SelectFields, GroupByFields to sort groups by a sequence number. However, these tags are not available to me to use.
So, I would like to use standard RadGridView properties and techniques to create 3 groups that will be sorted by a sequence number...
3 Columns: Process, Date, Version
3 Groups ordered top to bottom: Group1, Group2, Group3.
When I click on the column name "Process" for example, currently the groups move up or down.
I want to keep the groups in the same visual order Group1, Group2, Group3 but only sort each column within the group.
Any ideas?
I have a RadGridView, in the first column is an AutoCompleteBox for searching names. I will search name and paste in to the same column.
I have build the AutoCompleteBox in RadgridView.CellEditTemplate like this:
<telerik:RadAutoCompleteBox DisplayMemberPath="Name" TextSearchMode="Contains" TextSearchPath="Name" SearchText="{Binding Path=Name, Mode=TwoWay}" AutoCompleteMode="Suggest" SelectionMode="Single" BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}" NoResultsContentTemplate="{StaticResource RadAutoCompleteBoxNoResultsContentTemplate}" NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}" ItemsSource="{Binding Path=DataContext.Project.Customers, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">
But i always get error "System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'", if i type in the column. DisplayMemberPath="Name" and SearchText="{Binding Path=Name, Mode=TwoWay}" ara in conflict. Can sameone help me?
Thanks in advance.
