Telerik Forums
UI for WPF Forum
1 answer
136 views

Hi guys,

We are currently trying the RadScheduleView and want to display appointments. These appointments can change from another user, so we reload the data from time to time.
The Appointments are bound to a observable Collection, so adding and removing items should be easy. 

The problem is, that after the inital load we cant change the collection. We get the error it has to be in the same thread.
It doesnt' matter if we use a dispatcher or not.
And even if we set the SourceBinding to null before its the same error.

 

We attached a sample project without database. If you cklick the Button on top of the window you will get the error.

 

Does anyone hav an idea to solve the problem,. or maybe load the data in another way so it can be changed from code behind?

 

Greetings.

Dilyan Traykov
Telerik team
 answered on 01 Dec 2021
1 answer
146 views

Hello,

I have a RadGridView with a fixed set of columns that exist at the start of the app.

I'm also adding new columns to the grid dynamically at runtime depending on user input.

Sometimes, I need to clear all the dynamically created columns.

So I quickly came with a system that keeps tracks of the fixed columns. That way, I can clear all columns then re-create the fixed ones.

I also could have the other way around by keeping track of the created columns and just clear these ones.

But in both ways, I think the problem could be more elegantly solved if GridViewColumn had a property like IsRemovable, or a method CanRemove that I could set to true for my dynamic columns, and false for my fixed columns, so that when I clear my columns, I don't have any extra code to write to get the behavior I want.

Does it sound relevant to you? Do you think of another method/workaround?

Thanks!

Stenly
Telerik team
 answered on 01 Dec 2021
1 answer
374 views

I have a RadGridView in our project. I can filter the Property in the ViewModel, and the Grid updates. I can click the column filter and use the check boxes and it filters down to just those items - awesome.

However, the Column filter also has a section of, "Show rows with value that..." where you can say it equals something, is greater than, starts with, etc. In the text box, when I enter the value, as soon as I tab away the value just gets cleared.

Now, this is a project with lots of competing themes & legacy code etc. I setup a new project with just the RadGridView and a basic ViewModel and it worked perfectly. So I'm assuming there's some conflict somewhere that's occurring, I just don't have the first idea on where to start looking for it.

Is there any hint you can give me? E.g. What is the textbox binding to? Anything would be great.

Chris
Top achievements
Rank 1
Iron
 updated answer on 01 Dec 2021
1 answer
133 views

In my WPF application using c#, I need a count of DataPoints of a series of particular RadCartesianChart using c# (code behind). How can I achieve it?

I have used the following line:

int a = ((Telerik.Windows.Controls.ChartView.CategoricalSeries)new System.Collections.Generic.Mscorlib_CollectionDebugView<CartesianSeries>(((Telerik.Windows.Controls.RadCartesianChart)my SelectedChart).Series).Items[0]).DataPoints.Count;

But it gives the following error:

Error	CS0122	'Mscorlib_CollectionDebugView<T>' is inaccessible due to its protection level

Dinesh
Top achievements
Rank 1
Iron
 answered on 30 Nov 2021
1 answer
130 views

Hi guys,

is it possible to change the scheduleview in a way, that the rows only take the space the single row needs?
Currently if one row is bigger cause the groupheader is bigger all other rows are synced in height. This way it takes much more space then needed.

I searched for a property but not found one.

 

 

Greeting

Martin Ivanov
Telerik team
 answered on 29 Nov 2021
4 answers
177 views

Hello,

I recently updated to the new UI for WPF R3 2021 SP (v2021.3.1109).

I noticed that the appearance of my docking window has changed. It seems that the background color of the main window is inherited now. I attached two screenshots of my application, one before the change, one after.

Is this by accident or will it be a permant change?

regards,

Tobias

 

Stenly
Telerik team
 answered on 26 Nov 2021
1 answer
219 views

Hi guys,

I tried to use a RadCardView wich I wanted to replace a RadListBox, so I bound it to the same Collection in my ViewModel.

This collection is a ObservableCollection. To this collection are items added and removed from code behind from time to time. 
But when this happens I get a nullreference exception.
In the Listbox everything is fine...

And the exception of the CardView is the same with or without a Dispatcher.

 

Does anyone have an idea what could solve this?

Ivan Petrov
Telerik team
 answered on 26 Nov 2021
1 answer
1.0K+ views

When I bring up the Control Panel there is no "TURN FEATURES On/Off" check box for UI for WPF?  There is no Telerik for WPF New Project template either?  I see the standard MS WPF templates, but not Telerik?

In addition there is no option to add UI for UWP for VS 2022?

There IS an option to add WinForms for VS 2022 and I see those new project templates once added.

Am I missing something?

Cheers, Rob.

Nikolay Mishev
Telerik team
 answered on 25 Nov 2021
1 answer
132 views

Hello

I am trying to migrate a WPF (Prism) project from .NET Framework to .NET Core.

I am having issues with some of the controls. To start with the RadRibbonView / Tab simply is not visible in both design and run time (see screenshots). I tried to replace it by dragging the controls from the Toolbox and I get the same result. 

The xaml code I am copying and pasting from an older project so maybe some property has changed, but I was expecting to see something at least in design time.

I am just hoping it is something rather simple.

To replicate, just create a new project: Prism Full App (.NET Core). pull (nuget) the telerik libraries (I did it from local nuget source), and replace MainWindow.xaml with attached.

I use Telerik.UI.for.Wpf.NetCore 2021.3.914

 

Thanks

Herald

 

Martin Ivanov
Telerik team
 answered on 23 Nov 2021
1 answer
459 views
I use RadRichTextBox to preview word files. Those with the suffix .docx can run normally, but some .doc files cannot be previewed normally.Is there a solution?
Tanya
Telerik team
 answered on 23 Nov 2021
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?