Telerik Forums
UI for WinForms Forum
1 answer
993 views

Hi.

I am playing around with a trial version of the WinForms suite. There are a couple of issues I am seeing from the start and haven't been able to find a solution, so I was hoping posting here might lead me in the correct direction.

 

First: Telerik UI for Winforms > Convert to Telerik Controls crashes Visual Studio 2022 (.NET 8)

I have a simple solution with one Form (not the Telerik version). I also have one RadGridView and one Windows DataGridView.

Doesn't matter what I try in the conversion wizard, VS2022 crashes. I tried selecting a subset of files to convert (the list of files never displays), tried selecting only DataGridView and tried selecting all control types. All result in VS crashing with no conversion having taken place.

I searched the Telerik Knowledge Base and the best I could find seems to indicate VS2019 is a requirement. And if you suffer from crashes, that solution only goes back to VS2017. I downloaded the converter and I can only select VS2017.

https://docs.telerik.com/devtools/winforms/winforms-converter/requirements

https://docs.telerik.com/devtools/winforms/knowledge-base/converter-exception

I tried attaching the ZIP file but it is 33MB and that is too large. The solution only has one form and two grids. With very basic hard-coded data to load (which I took from a Telerik tutorial).

 

Second: Adding a RadGridView to our existing .NET 8 WinForms project results in VS2022 freezing when I try to rebuild the solution.

I can't include code for this one. What I did was add a NuGet package to: Include="UI.for.WinForms.AllControls.Net80.Trial" Version="2024.2.514"...

I dragged a RadGridiew onto an existing Form that had a DataGridView. I then copied whatever loading I do for the DataGridView and bind the same List (around 100 rows) to both grids.

If I try to rebuild the solution, once it gets to the project containing the RadGridView VS2022 will freeze.

However if I run the solution, I see the grid loaded an populated

 

Thanks for any insights.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 30 May 2024
1 answer
74 views
Hi team !!!! I want an approach allows me to determine which column was clicked in the RadListView control.
Nadya | Tech Support Engineer
Telerik team
 answered on 30 May 2024
1 answer
131 views
Is it possible to create a new Radform when using a vb.net and .net 8 project?  When I attempt to create a new form, there are only .net framework templates shown
Nadya | Tech Support Engineer
Telerik team
 answered on 28 May 2024
1 answer
88 views

Hi 

I have a RadGridView and after updating a cell value I save the scroll (horizontal and vertical) values to set the same position after a refresh.

The problem: when I update a cell, after setting the same values for the horizontal and vertical scrolls, the current cell is placed to the right corner of the grid (image 2). Even if the scroll values are set correctly.

Img1: before changing a cell value

Img2: when the value has changed and the scroll values are set as they were. 

 

Thanks in advanced

Dinko | Tech Support Engineer
Telerik team
 answered on 27 May 2024
1 answer
115 views

Hi, 

I want to know information if the button is enabled. I use inspect.exe and for the option 'UI Automation', and the IsEnabled property is always set to true. While for option 'MSAA', IsEnabled is not supported.

How can I check is button enabled or disabled?

Dinko | Tech Support Engineer
Telerik team
 answered on 27 May 2024
1 answer
170 views

The latest .net 8 release has brought new features that now make it possible to use the MVVM pattern in windows forms projects in a serious way.

My question is, is it possible to assign the datagrid's row click or row double click event handler to the new ICommand (as is already possible for Button). This would allow these methods to be placed in the ViewModel as the MVVM pattern suggests?

If this is possible in some way, please provide a sample solution.


Thanks

Dinko | Tech Support Engineer
Telerik team
 answered on 27 May 2024
1 answer
264 views

Description:

I recently upgraded my .NET Framework project to .NET Core 8. However, I'm now encountering an issue where the RadListView component is not recognized. I've tried adding the necessary NuGet packages, but the error persists.

The specific error message I'm receiving is:

CS0234: The type or namespace name 'RadListView' does not exist in the namespace 'Telerik WinControls.UI' (are you missing a reference?)

I've attached a screenshot of the error message for your reference.

I'm using the Telerik RadControls for WinForms library, and I've made sure to install the latest version of the NuGet package (Telerik.WinControls.dll). I've also tried adding the following using directives:


using Telerik.WinControls.UI;
using Telerik.WinControls;

But the error persists.

I've searched for similar issues online, but I haven't been able to find a solution that works for me. I'm hoping someone here can help me troubleshoot this problem.

Additional details:

  • I'm using Visual Studio 2022.
  • I'm targeting .NET Core 8.
  • I've tried cleaning and rebuilding the project.

Any help would be greatly appreciated.

Here are some additional things you can include in your forum post:

  • Any relevant code snippets
  • The exact versions of the Telerik RadControls for WinForms library and NuGet package that you're using
  • The steps you took to upgrade your project to .NET Core 8

I hope this helps!

Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2024
3 answers
205 views

I have a controls RadTextBox, RadDateTimePicker, RadDropdown etc... I want to add icon to each control that is the Mandatory Field sign to the user. Currently in TELERIK I am able to see only error icon, that also not showing immediately after the form load.

-----------------------------------------------------

Below is an example for what I am expecting:

I used other tool controls which provides that facility.

I used below components in another tool, to show you what I am expecting.

  1. ValidationProvider
  2. ErrorProvider

Please see attached filed to know my expected result.

  • DesignTime:

           

  • Run Time:

           

 

Please do the needful, and code it/suggest and attach a sample app.

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 23 May 2024
1 answer
69 views

Hello,
I have problem with performance of GridView in self referencing hierarchy mode. I am working on move up/down function to move specific row up or down. I need to move it also in my underlying list, so I move it first in my list and then clear BindingList for GridView and add new items. This is done in DoRefreshEditorItems method of TestParEditorCollection class:

		private void DoRefreshEditorItems()
		{
			EditorItems.Clear();
			maxGridId = 0;

			foreach (var item in Items)
			{
				var editorItem = new TestParEditorItem(item, ++maxGridId);
				EditorItems.Add(editorItem);

				if (item.HasSubItems)
					AttachSubItems(editorItem);
			}

			RenumberRows();
		}

Each call to EditorItems.Add() takes cca 100ms and whole refresh of 20 rows takes cca 2s. It looks like this:

I also tried to set DataSource to null, refresh binding list and set DataSource back, but it looks very similar. I have attached test project, it's TelerikTestReal project in solution.

Dinko | Tech Support Engineer
Telerik team
 answered on 22 May 2024
1 answer
77 views

How can a specific color be set to specific words in the TEXT value of a LABEL?

I have tried using the following

radLabel.Text = "<HTML><color=red>Hello<color=black>World</HTML>";

But it doesn't work, I get the following when running our code.

<HTML><color=red>Hello<color=black>World</HTML>

Any help would be greatly appreciated.

 

Thank You

Nadya | Tech Support Engineer
Telerik team
 answered on 16 May 2024
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?