Hey,
as in the titel is there a event or workaround to know if a userer startet to type inside a pdf text field. I just need it to set a bool true to inform the user that there is a possibility to lose data.
Thanks
Dominik
Hi,
I am exploring the RadCartesianChart component and would like to know if there is a way to determine the intersection point between two series. For example, I have a SplineSeries and a LineSeries, and I would like to know where they intersect. Is there a component or method to accomplish this?
I may be using the wrong component to try to achieve that?
<telerik:RadCartesianChart x:Name="telerikChart">
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Title="Distance (m)" DesiredTickCount="10"/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeContinuousAxis Title="Time (HH:mm)" LabelFormat="HH:MM"
TickOrigin="{Binding Origin}" MaximumTicks="14" MajorStepUnit="Hour" MajorStep="1"
Minimum="{Binding Minimum}" Maximum="{Binding Maximum}" />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.Series>
<telerik:SplineSeries x:Name="barSerie1" CategoryBinding="Time" ValueBinding="Distance" ItemsSource="{Binding DistanceSeries}" ShowLabels="True" />
<telerik:LineSeries x:Name="barSerie2" CategoryBinding="Time" ValueBinding="Distance" ItemsSource="{Binding AverageLineSeries}" ShowLabels="True"/>
</telerik:RadCartesianChart.Series>
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="XY" />
</telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>
Thanks for your time!
We recently updated to version 2024.1.312. After the update, we get an exception (see stack trace below) or freezing with many of our RadToggleSwitchButtons. It seems to only affect the ones that are backstage in a RadDataForm. I found https://feedback.telerik.com/wpf/1645011-buttons-nullreferenceexception-when-setting-ischecked-of-radtoggleswitchbutton-before-the-control-is-added-to-the-visual-tree, but the workaround suggested there doesn't work for us, even if we leave the animations enabled.
I'm using a VirtualizingWrapPanel as the ItemsPanelTemplate of a RadListBox
<telerik:RadListBox x:Name="ItemControl"
Grid.Row="1"
VirtualizingPanel.ScrollUnit="Pixel"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:UserControl}}, Path=PathName}">
<telerik:RadListBox.ItemsPanel>
<ItemsPanelTemplate>
<telerik:VirtualizingWrapPanel HorizontalAlignment="Center" ItemWidth="200" ItemHeight="180"/>
</ItemsPanelTemplate>
</telerik:RadListBox.ItemsPanel>
The ItemsSource is a ListCollectionView which is Live updating
ListCollectionView = new(Models);
ListCollectionView.IsLiveSorting = true;
ListCollectionView.SortDescriptions.Add(new SortDescription("Percentage", ListSortDirection.Ascending));
The collection seems to be updating and reaching the UI; however, every so often I get empty cells in the RadListBox after a sorting happens.
If I scroll away and come back the area is filled in. Is there something I can do manually so that this area is filled in? Should I try reloading something in some way?
I've tried invalidating things in the wrap panel but this hasn't worked:
wrapPanel?.InvalidateArrange(); wrapPanel?.InvalidateMeasure(); wrapPanel?.InvalidateVisual(); wrapPanel?.UpdateLayout();
Any help or suggestions are appreciated
We would like to change the color of the highlighted items (i.e., HighlightedItemsSource) in the RadGanttView.
I know this is possible by copying and customizing the ControlTemplate, but I would like to avoid that if possible since I would need to do that for all the different types of containers.
I also know it's possible to change the color in the theme (we're using Office2019), but unfortunately, the template uses ValidationBrush for these highlights and we still want the validation to show as red in other areas of our application.
Is there any other way to change the color of the highlighted items?
If I have set the Angle Range on a RadPieChart so that I have a semicircle, is there a good way to make the remaining chart take up the entire area used for the RadPieChart or at least a good way to center it?
<telerik:RadPieChart x:Name="Chart" Background="Yellow">
<telerik:RadPieChart.Series>
<telerik:DoughnutSeries x:Name="DonutSeries" ShowLabels="False">
<telerik:DoughnutSeries.DataPoints>
<telerik:PieDataPoint Label="TestLabel1" Value="15"/>
<telerik:PieDataPoint Label="TestLabel2" Value="50"/>
</telerik:DoughnutSeries.DataPoints>
<telerik:DoughnutSeries.LegendSettings>
<telerik:DataPointLegendSettings TitleBinding="Label"/>
</telerik:DoughnutSeries.LegendSettings>
<telerik:DoughnutSeries.AngleRange>
<telerik:AngleRange StartAngle="180" SweepAngle="180" SweepDirection="Clockwise"/>
</telerik:DoughnutSeries.AngleRange>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
Thank You!
Hello,
I'm using a RadMaskedTextInput and I'm wondering if it's possible to change the foreground color of just the placeholders?
What I'm trying to accomplish is for every X in below image to appear in a brighter color than the text typed in by the user.
What my RadMaskedTextInput looks like currently:
What I want the foreground to look like:
Is there a way to use RadGlyphs as icons for the items of a RadBreadcrumb?
Thank you.
Hi,
I am trying to change the theme through telerik StyleManager.Theme.
Not apply :
<mynumeric:MyNumeric x:Name="TEST" Margin="-2,0,0,0"
Value="{Binding ViewModel.SerialNumber,Mode=TwoWay}"
ValueFormat="Numeric"
NumberDecimalDigits="0"
Minimum="1" Maximum="9999"
telerik:StyleManager.Theme="{Binding Path=(mainwindowviewmodel:MainWindowViewModel.CurrentTheme),Converter={StaticResource ThemeToTelerikThemeConverter}}"
IsReadOnly="{Binding Path=(mainwindowviewmodel:MainWindowViewModel.IsManagerAccess),Converter={StaticResource InverseBooleanConverter}}"
>
Apply :
<telerik:RadNumericUpDown x:Name="TEST" Margin="-2,0,0,0"
Value="{Binding ViewModel.SerialNumber,Mode=TwoWay}"
ValueFormat="Numeric"
NumberDecimalDigits="0"
Minimum="1" Maximum="9999"
telerik:StyleManager.Theme="{Binding Path=(mainwindowviewmodel:MainWindowViewModel.CurrentTheme),Converter={StaticResource ThemeToTelerikThemeConverter}}"
IsReadOnly="{Binding Path=(mainwindowviewmodel:MainWindowViewModel.IsManagerAccess),Converter={StaticResource InverseBooleanConverter}}"
>
public class MyNumeric : RadNumericUpDown
{
public override string FormatDisplay()
{
if (this.Value.HasValue)
{
return this.Value.Value.ToString("0000");
}
return base.FormatDisplay();
}
public override string FormatEdit()
{
if (this.Value.HasValue)
{
return this.Value.Value.ToString("0000");
}
return base.FormatEdit();
}
}
internal class ThemeToTelerikThemeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (!Enum.IsDefined(typeof(Wpf.Ui.Appearance.ThemeType), value))
throw new ArgumentException("ExceptionEnumToBooleanConverterValueMustBeAnEnum");
switch (value)
{
case Wpf.Ui.Appearance.ThemeType.Light:
return "Office2019";
case Wpf.Ui.Appearance.ThemeType.Dark:
return "Expression_Dark";
default:
return "Office2019";
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
I'll appreciate any help.