Telerik Forums
UI for WPF Forum
2 answers
26 views

I have a license for UI for WPF 2020 R3 SP1 and I can see a dll called Telerik.Windows.Documents.Spreadsheet

I just can not find any way of utilizing this? Wonder if there is no control associated or why it is there?

I just need to be able to display the content of an Excel xlsx file. No edit, no nothing...

hhgm
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 03 Jan 2025
0 answers
49 views

I've been dealing with an issue for awhile now where dragging and dropping multiple tree items is kind of difficult.  If I select several items and then try to drag them somewhere else, it only works if I start the drag with my mouse over the last item selected.  If I try to start the drag with my mouse over any other selected items then the tree selection changed event fires and wipes out all of the selected items except for the one I'm currently over.

Holding the shift key during all of this also makes it work as expected.  But both of the ways that work aren't very obvious to users.  Is there any other way to keep all of the selected items when dragging regardless of what item the drag starts over?

 

Blaine
Top achievements
Rank 1
 asked on 02 Jan 2025
1 answer
29 views

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>
Stenly
Telerik team
 answered on 24 Dec 2024
1 answer
65 views

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. 

Stenly
Telerik team
 answered on 20 Dec 2024
1 answer
46 views

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?

Martin Ivanov
Telerik team
 answered on 19 Dec 2024
1 answer
69 views

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"

Martin Ivanov
Telerik team
 answered on 17 Dec 2024
0 answers
34 views

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.

Gerhard
Top achievements
Rank 1
Iron
Iron
 asked on 17 Dec 2024
1 answer
30 views

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.

ffunke
Top achievements
Rank 1
Iron
 answered on 13 Dec 2024
1 answer
22 views
Update other column when editing another column
Martin Ivanov
Telerik team
 answered on 13 Dec 2024
1 answer
42 views

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

Thomas Leth
Top achievements
Rank 1
Iron
 answered on 12 Dec 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?