
I am using a RadCartesianChart3D in a WPF application, where the label along the y-axis on the horiziontal plane denotes a "Flow direction" displayed using an Arrow symbol.
When/if the user rotates the chart around the vertical z-axis, so that the chart is seen from the backside, the values of the Y-axsis are reversed, which in my case translated to the "flow direction" should be swapped, as in: I need to change the arrow symbol in the y-axis label from "Pointing Right" to "Pointing Left" (or the opposite).
I notice, that the RadCartesianChart3D is actually already "flipping" the text label as the chart is rotated.
Is there any way I can intercept this behaviour, eg. as a ChartRotated or LabelPositionUpdated event, as the user rotates the chart, so that I can change the Label text as needed?
Two images attached to illustrate what I try to accomplish
/Thanx
Hi,
Does anyone know how I can set the text manually in a RadPropertyGrid and a ComboBox? Or also the selectedIndex?
I want to manually set ONLY this one element.
<telerik:RadPropertyGrid AutoGeneratePropertyDefinitions="False"
x:Name="PropertyBenutzer"
LabelColumnWidth="150"
MinHeight="50"
FontFamily="Tahoma"
FontWeight="Bold"
FontSize="12"
DescriptionPanelVisibility="Visible"
CanUserResizeDescriptionPanel="True"
telerik:StyleManager.Theme="Crystal"
NestedPropertiesVisibility="Visible"
RenderMode="Flat"
IsGrouped="True"
Item="{Binding ElementName=MyPropertyGrid1}"
Canvas.Left="568"
>... <telerik:PropertyDefinition DisplayName="Anrede" OrderIndex="1" GroupName="Benutzer">
<telerik:PropertyDefinition.EditorTemplate>
<DataTemplate>
<Border>
<telerik:RadComboBox x:Name="ComboBoxAnrede"
FontFamily="Tahoma"
Width="156"
HorizontalAlignment="Left"
HorizontalContentAlignment="Center"
SelectedItem="{Binding Anrede, Mode=TwoWay}"
ItemsSource="{Binding AnredeListe}"
DisplayMemberPath="Anrede"
IsEditable="False"
IsEnabled="true"
IsReadOnly="False"
MinWidth="30"
SelectedIndex="0"
CanAutocompleteSelectItems="True"
CanKeyboardNavigationSelectItems="True"
>
</telerik:RadComboBox>
</Border>
</DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>
</telerik:PropertyDefinition>
I would like to drag text outside of a WPF RadRichTextBox into a different App.
It seems that dragging any text just outside of this control is not possible, not even within the same app.
IMHO the problem is, that text can be moved within this control, and this feature cannot be deactivated.
Thanks a lot in advance for any hints.
Edit: Just checked with standard RichTextBox (FlowControl) no problems out of the box. I can drag text internal and as soon as mousepointer went outside, everything is fine and works there. Try this with RadRichTextBox and the Prompt goes crazy inside of your control.
Hi Everyone,
Is there any way to put searchbox outside of radgrid?
For example:
<stackpanel>
<searchpanel ...../>
</stackpanel>
<RadGridView ..... />
Thank you
Cris

I use nuget.telerik for my CI/CD.
There is actually a bug in WPF controls (Touch Manager) which is fixed in preview version Telerik UI for WPF 2024.4.1126
But this version is not available throught nuget.telerik.
How can I use it in my CI/CD?
Hello,
i'm using a RadButton with a RadBadge to open an dialog with new messages.
Now i'm wondering how to hide the RadBadge when there are no new messages...
In my viewmodel i have a property (bool) that indicates, if the badge should be visible or not...
Here's the XAML - its part of a datatemplate for a RadWindow:
<telerik:RadButton x:Name="manButton" Grid.Column="7" Margin="10,6" Command="{Binding ShowManCommand}" Focusable="False">
<telerik:RadButton.Content>
<Image Source="{iconPacks:MaterialImage CommentTextMultipleOutline, Brush=White}" Margin="4" />
</telerik:RadButton.Content>
<telerik:RadBadge.Badge>
<telerik:RadBadge BadgeType="ContentOnly" AnchorPosition="1,1" Position="1.1,0.4"
Geometry="{telerik:Geometry Type=Oval}" Background="Red"
FontSize="12" Height="16" Width="28"
Content="{Binding ManMessageCount}"
Visibility="{Binding IsManBadgeVisible, Converter={converter:BoolToVisibilityConverter}}"/>
</telerik:RadBadge.Badge>
</telerik:RadButton>
Is there a possibility to hide/collapse the RadBadge? It seems that the visibility property isn't working...
I've been working with the Telerik WPF controls for the last couple of months and appreciating them.
<rant>
However, I have a major gripe as well: most of the examples are FAR too complex. Here's a perfect example. I'm trying to get a ComboBox to work with a GridView. There is an example that does pretty much exactly what I want at https://github.com/telerik/xaml-sdk/tree/master/ComboBox/DropDownWithHeaders. However,
There is also an example of this at https://www.telerik.com/forums/radcombobox-with-radgridview, but it suffers from the same problems.
This kind of thing seriously makes me ponder going back to our old controls provider.
</rant>
Now, can someone please provide me with a simple example of a ComboBox that uses a GridView for the drop-down?
Of course perhaps I'm using the wrong control. Maybe I should be using the MultiColumnComboBox, but the end results shown in the examples make it look nothing like a traditional ComboBox. (Again, that may be owing to a lack of a good, simple example.)
Help?
using System;
using System.Windows.Input;
using XXX.Core.Models.EventArgs;
using Telerik.Windows.Diagrams.Core;
namespace XXX.XXX.Presentation.Tools
{
internal class MyPanningTool : PanningTool
{
private const string PanningToolName = "Panning Tool";
private SelectionMode _selectionMode;
private ToolService _toolService;
public MyPanningTool()
{
Cursor = DiagramCursors.Dragging;
}
private void ActivatePanningTool()
{
_toolService ??= Graph.ServiceLocator.GetService<IToolService>() as ToolService;
_toolService?.ActivateTool(PanningToolName);
}
private void ActivatePointerTool()
{
_toolService ??= Graph.ServiceLocator.GetService<IToolService>() as ToolService;
_toolService?.ActivateTool("Pointer Tool");
}
public override bool KeyDown(KeyArgs key)
{
if (!IsActive) return false;
base.KeyDown(key);
if (key.Key != Key.Enter && key.Key != Key.Escape && !ToolService.IsControlDown)
{
ActivatePanningTool();
return false;
}
return false;
}
/// <inheritdoc />
public override bool MouseDown(PointerArgs e)
{
if (IsActive)
{
_selectionMode = Graph.SelectionMode;
Graph.SelectionMode = SelectionMode.None;
}
if (ToolService.IsControlDown || Mouse.MiddleButton == MouseButtonState.Pressed)
{
//ActivateTool();
//ActivatePanningTool();
return base.MouseDown(e);
}
return IsActive && base.MouseDown(e);
}
/// <inheritdoc />
public override bool MouseMove(PointerArgs e)
{
if (ToolService.IsControlDown || Mouse.MiddleButton == MouseButtonState.Pressed)
{
return base.MouseMove(e);
}
return IsActive && base.MouseMove(e);
}
/// <inheritdoc />
public override bool MouseUp(PointerArgs e)
{
if (!IsActive) return false;
Graph.SelectionMode = _selectionMode;
try
{
base.MouseUp(e);
}
catch
{
// ignored
}
if (ToolService.IsControlDown || Mouse.MiddleButton == MouseButtonState.Pressed) return base.MouseUp(e);
ActivatePointerTool();
ToolChangedEvent?.Invoke(null, new ToolChangedEventArgs("Pointer Tool"));
return true;
}
public static event EventHandler<ToolChangedEventArgs> ToolChangedEvent;
}
}