Our ultimate goal is to have a pane - the "Zone Editor" be collapsed by default but fly out once a variable is set - we have achieved part of this behavior using the code segment below. However, when we lose focus on the pane, it flies away again, even if the IsActive variable is set to true. Is there a way to prevent this?
<telerik:RadSplitContainer InitialPosition="DockedRight" Orientation="Horizontal" >
<telerik:RadPaneGroup Name="ZoneEditorPane">
<zoneEditor:ZoneEditor IsActive="{Binding DataContext.IsZoneEditorVisible, ElementName=DockingControl, Mode=TwoWay}" AutoHideWidth="1075" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
Hello,
I use the RadTreeListView control and set the theme implicitly. So far, everything works well. Currently, I use the theme "Office Black". I would like to adjust the table by making changes to the "Telerik.Windows.Controls.GridView.xaml"-ResourceDictionary. So far, I could edit a lot of stuff, and it mostly worked great. But there's one thing I just can't seem to resolve.
I am having trouble customizing all the shown borders of the RadTreeListView. I don't want to have any "IsSelected" or "EditMode" Styles since my TreeListView should exclusively display information.
1) Header row cells:
I noticed that there seem to be several borders around each header row cell. What are the names of the colors of the borders or the names of the borders themselves? A black border, probably 1 pixel in thickness in each direction, keeps appearing and after hours of searching I still haven't found how to hide it / delete it from the ResourceDictionary. In the header row, each cell must only have one white border surrounding it - plain WPF :)
2) 'Normal' table cells showing content:
Furthermore, a border with 1 pixel thickness on the left and upper side appears as soon as I click into a cell (NOT in the header). As soon as clicked, the border mustn't change its style in any way - no change in style or behavior desired.
I want to edit the ResourceDictionary and NOT just overwrite the TreeListView itself. The ResourceDictionary must be reusable in my solution.
Thanks in advance! Any help is appreciated.
When a string field contains multiple lines, what is the correct text to put into the editor to match that multi-line field?
I've modified the Telerik sample, https://docs.telerik.com/devtools/wpf/controls/radexpressioneditor/getting-started, so that the Occupation for Sarah Blake contains a newline between Supplied and Manager. How does a user match the occupation? What is the correct escape sequence? Two double quotes, "", works for matching an embedded double quote, ", but how does one match embedded newlines?
Hi!
I have a filter with values set (via DistinctValuesLoading). There is a string property in the elements. Is there a way to use "Contains" when filtering elements.
I used a CustomFilteringControl:
var ids = this.distinctValuesListBox.SelectedItems.OfType<string>();
this.filterDescriptor = new FilterDescriptor<RowInfo>()
{
FilteringExpression = rowInfo => ids.Any(x => rowInfo.Name.Contains(x))
};
gridView.FilterDescriptors.Add(this.filterDescriptor);
It works. But I can't use RadGridView settings saving. And for each column (in different tables) where such mechanics will be used (unique values will be different) it will be necessary to create its own CustomFilteringControl and add it to ICustomPropertyProvider to save RadGridView settings.
Is there a way to set the filtering method to "Contains"?
Something like this:DistinctValuesSearchMode="Contains"
Hello, I use the chart with binding for the data and the label.
// Model
public class StatisticRowItem
{
public double ValueDouble { get; set; }
public string Value { get; set; }
public string Name { get; set; }
}
// ViewModel
public class ViewModel
{
public ObservableCollection<StatisticRowItem> RowItemList { get; set; }
}
If only the values are bound, the calculation of the percentage values is correct.
<telerik:RadPieChart Grid.Row="1" Palette="{StaticResource customPalette}">
<telerik:RadPieChart.Series>
<telerik:DoughnutSeries
InnerRadiusFactor="0.35"
ItemsSource="{Binding RowItemList}"
RadiusFactor="0.50">
<telerik:DoughnutSeries.ValueBinding>
<telerik:PropertyNameDataPointBinding PropertyName="ValueDouble" />
</telerik:DoughnutSeries.ValueBinding>
<telerik:DoughnutSeries.LabelConnectorsSettings>
<telerik:ChartSeriesLabelConnectorsSettings />
</telerik:DoughnutSeries.LabelConnectorsSettings>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
However, if the value and the label are linked, the calculation is incorrect.
<telerik:RadPieChart Grid.Row="1" Palette="{StaticResource customPalette}">
<telerik:RadPieChart.Series>
<telerik:DoughnutSeries
InnerRadiusFactor="0.35"
ItemsSource="{Binding RowItemList}"
RadiusFactor="0.50">
<telerik:DoughnutSeries.ValueBinding>
<telerik:PropertyNameDataPointBinding PropertyName="ValueDouble" />
</telerik:DoughnutSeries.ValueBinding>
<telerik:DoughnutSeries.LabelDefinitions>
<telerik:ChartSeriesLabelDefinition Margin="-15,0,0,0">
<telerik:ChartSeriesLabelDefinition.Template>
<DataTemplate>
<StackPanel>
<TextBlock
Foreground="{DynamicResource Brushes.Text.Dark}"
Text="{Binding DataItem.Name}"
Style="{StaticResource ControlBase.FontStyle.ButtonText}" />
<TextBlock
HorizontalAlignment="Center"
Foreground="{DynamicResource Brushes.Text.Dark}"
Style="{StaticResource ControlBase.FontStyle.ButtonText}"
Text="{Binding Value}" />
<TextBlock
HorizontalAlignment="Center"
Foreground="{DynamicResource Brushes.Text.Dark}"
Style="{StaticResource ControlBase.FontStyle.ButtonText}"
Text="{Binding Percent}" />
</StackPanel>
</DataTemplate>
</telerik:ChartSeriesLabelDefinition.Template>
</telerik:ChartSeriesLabelDefinition>
</telerik:DoughnutSeries.LabelDefinitions>
<telerik:DoughnutSeries.LabelConnectorsSettings>
<telerik:ChartSeriesLabelConnectorsSettings />
</telerik:DoughnutSeries.LabelConnectorsSettings>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
The Telerik version 2024.1.130.45 of the WPF controls is used.
Hi,
I have migrated a .NET 4.8 app to .NET 8.0. In the app I define some colors for the MarterialPalette in App.xaml.cs via
StyleManager.ApplicationTheme = new MaterialTheme();
MaterialPalette.Palette.PrimaryNormalColor = Colors.Red;
Long story short, when I use a Telerik control it ignores the changes done at the palette.
I tried to create a small project to comprehend the problem, but unfortunately I was not able reproduce it on a simple basis.
So, my question is: Are there any konwn problems with the theming to take over changes that should appear globally?
Thanks in advance.
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.