Telerik Forums
UI for WPF Forum
1 answer
99 views
Hi Telerik,

How to implement the nested column groups in WPF c#. My headers ,sub headers and data will be dynamic. 
And my layout should look like below image. How to Implement this. Please help us! 
Martin Ivanov
Telerik team
 answered on 13 Jul 2023
1 answer
78 views

Hello,

During project implementation a wrong link connection was found.

Precondition:

When we have two models of ContainerNodeViewModelBase OuterModel and InnerModel.

InnerModel has set to true "RadDiagramShapeBase.UseGlidingConnector".

Steps to reproduce:

1. Put InnerModel inside OuterModel.

2. Connect the top middle connector to middle connector of InnerModel

3. When you move InnerModel in upper part of OuterModel the link is connected to bottom of InnerModel instead of to top.

To make reproduce easier i attach video, and i modified your sample application (PasteOnMousePosition) to reproduce this issue.

I attached both things.

Video desc:
1st use case with no gliding connector -- looks ok

2nd use-case movement outside of container and the link looks ok, but the link connection inside looks bad.

Currently this link is just a line, but when it would be an arrow then its looks even worse.

Bartosz
Top achievements
Rank 1
Iron
 answered on 13 Jul 2023
1 answer
133 views

Hi


I use the RadDateTimePicker and have a button ("Next"):

When now the user changes the date/time value to an invalid date/time an error is shown:

When the user clicks on the "Next" button the DateTimeText disapears and is empty and an error is schown:

My Question:
Is it possible to set the DateTimeText to the previous wrong formatted date/time (120000000000.07.23 08:49) like this ? 

I have tried to overload the method  OnParseDateTime and set the CurrentDateTimeText but it's not working.

Dinko
Telerik team
 answered on 13 Jul 2023
1 answer
119 views

Hello,

Where can I download this demo source code? Is it available?

Thank you,

Alberto

Dinko
Telerik team
 answered on 13 Jul 2023
0 answers
143 views

Hi, i'm having a rough fight with WPF and its Binding system. I just wanna bind a property of an instance called HPP, this property is pressure and this object exist in MainViewModel, so in MainWindow.xaml a have this:


<componentes:SetComponent x:Name="HPP_Trip_Route" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" Title="TRIP" VariableValue="{Binding HPPRoute.Pressure}" Unity="PSI" Loaded="SetComponent_Loaded" FSizeTitle="24" FSizeVariable="36" FSizeUnity="14"/>
In SetComponent:
<TextBlock x:Name="ValueSetComponent" Grid.Row="1" Text="{Binding VariableValue, RelativeSource={RelativeSource AncestorType=UserControl}}" FontSize="{Binding FSizeVariable}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Foreground="#FFFFFF" Margin="0, 5, 0, 5 "/>
Dar clic y arrastrar para mover
In MainWindow.xaml.cs:

public partial class MainWindow : Window, INotifyPropertyChanged
    {
        private readonly Variables GV = Variables.GetInstancia();
        private MainViewModel _mainViewModel;
        public MainViewModel MainViewModel
        {
            get { return _mainViewModel; }
            set
            {
                _mainViewModel = value;
                OnPropertyChanged();
            }
        }

        public MainWindow()
        {
            InitializeComponent();
            GV.MainViewModel.StartAssign(GV);
            MainViewModel = GV.MainViewModel;
            GV.MainViewModel.MainWindow = this;
            DataContext = MainViewModel;
     
        }
        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

I tried with RelativeSource without success. If i create a variable in MainViewModel it works. Any help?

Fenix
Top achievements
Rank 1
 asked on 12 Jul 2023
1 answer
143 views
I have a Radgridview with merged cells. When I select a merged cell, the selected row in the ViewModel does not change. I need to get all rows whose cells are included in the selected merged cell. Can it be done?
Dinko
Telerik team
 answered on 11 Jul 2023
1 answer
150 views

We use RadCombobox (WPF) for loading more than 20000 items.

We enabled the following properties and removed the Virtualization properties. We are facing performance problems on searching the items from RadCombobox element. How can we improve performance for the RadCombobox load and search, if virtualization properties cannot be used.

<telerik:RadComboBox
x:Name="itemBox"
HorizontalAlignment="Stretch"
CanAutocompleteSelectItems="True"
DisplayMemberPath="Name"
EmptyText="Select the item"
IsEditable="True"
IsFilteringEnabled="True"
IsTextSearchEnabled="True"
ItemsSource="{Binding ItemCollection, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
OpenDropDownOnFocus="True"
ScrollViewer.VerticalScrollBarVisibility="Auto"
SelectedItem="{Binding SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
TextSearch.Text="Name"
TextSearchMode="Contains" />
Dinko
Telerik team
 answered on 10 Jul 2023
1 answer
95 views

Hello! I need to merge cells in all columns. In my example, the screenshot shows that Sam in the "Name" column is merged for two different people who are part of different companies. Is it possible to make the cells merge based on the columns on the left? That is, if Sam is part of different companies, then he does not need to be merged.
What I want is in the attachment

Martin Ivanov
Telerik team
 answered on 10 Jul 2023
1 answer
151 views

Hi

Is it posible to add a custom button to the pdfviewer toolbar in UI for WPF?

 

 

Dinko
Telerik team
 answered on 07 Jul 2023
1 answer
275 views

Hello,

 

I have a RadMaskedTextInput that I'm using for a phone number.

 

If I clear the form, and set the txtDriverNumber (that's the name of the field) using txtDriverNumber.Text = "" (and I also tried string.Empty) it looks like it clears the value correctly.


However, when the textbox gets focus again, it puts back in the last entered data.  I don't want it to do that, is there something I can do to make sure it doesn't remember previous values?

Stenly
Telerik team
 answered on 06 Jul 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?