Telerik Forums
UI for WinForms Forum
0 answers
120 views

The following distribution changes will be announced as of 2025 Q2:

  • CHM and Help3 offline documentation resources will be discontinued. The Telerik UI for WinForms offline documentation will be available to download as a PDF file from your Telerik account: Download Product Files
  • Classes inside the Telerik.WinControls.Zip and Telerik.WinForms.Spreadsheet.Zip namespaces will be removed from the Telerik.WinControls and Telerik.WinControls.RadSpreadsheet assemblies. Please transition to System.IO.Compression or Telerik Document Processing libraries for continued Zip functionality.
  • .NET 6 distribution will be discontinued, following Microsoft's End of Support Policy for .NET 6.
Nadya | Tech Support Engineer
Telerik team
 updated question on 27 Feb 2025
1 answer
5 views

Hi,

I have develop a custom tagger in order to format some specific words.

My problem is that the format is applying to this words even if they are used as strings (inside quotes).

I would like that the format only applies when the word is not in quotes.

In. Ex:

WORD -> Apply Format

"WORD" -> Do not apply format

 

This is my code:

using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using AutoMapper.Internal;
using Telerik.WinControls.UI;
using Telerik.WinForms.Controls.SyntaxEditor.Taggers;
using Telerik.WinForms.Controls.SyntaxEditor.UI;
using Telerik.WinForms.SyntaxEditor.Core.Tagging;

namespace Simulation.UX.Forms.Controls.Neptune
{
    public class CustomTagger : CSharpTagger
    {
        public static readonly ClassificationType CustomClassificationType = new("Custom");
        public static readonly Dictionary<string, ClassificationType> WordsToClassificationType = new();
        public static readonly TextFormatDefinition Format = new(new SolidBrush(Color.DarkGoldenrod));

        private readonly List<string> _words;

        public NeptuneTagger(RadSyntaxEditorElement editor, List<string> words) : base(editor)
        {
            _words = words;
        }

        protected override Dictionary<string, ClassificationType> GetWordsToClassificationTypes()
        {
            Dictionary<string, ClassificationType> baseTypes = base.GetWordsToClassificationTypes();

            _words?.ForAll(w =>
            {
                if (!baseTypes.ContainsKey(w))
                {
                    baseTypes.Add(w, CustomClassificationType);
                }
            });

            return baseTypes;
        }
    }
}
 
Dinko | Tech Support Engineer
Telerik team
 answered on 30 Apr 2025
0 answers
7 views

I am sure this is a setting somewhere, but I can't find it for my life.  In some cases, we have where Grid columns exceed the width of the visible grid.  When that happens, the grid data is centered in the visible area.  How can we prevent that?  

 

Any help would be great appreciated.

 

TIA

 

 

 

 

Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
 asked on 29 Apr 2025
1 answer
10 views

We are experiencing a critical issue with the RadPdfViewer control after upgrading to version 2024.4.1113. Previously, we were using version 2017.X and everything worked correctly.

After the upgrade, when some users try to load PDFs in the viewer, the documents are either:

  • Completely blank,

  • Filled with black squares,

  • Or displayed in a distorted/incorrect format.

The issue is inconsistent — the same PDF files that display incorrectly for some users render just fine for others. All users are accessing the same application via a Windows RDS (Remote Desktop Services) environment.

What makes this even more confusing is that:

  • The issue only affects certain users on the RDS server.

  • The exact same PDF can be opened successfully by one user but fails for another.

  • The application and environment are otherwise identical between users.

We’ve confirmed that the issue started only after upgrading the Telerik controls to the latest version.

Can you please assist us in identifying the cause and provide any recommendations or patches that could resolve this issue?

Environment:

  • Telerik UI for WinForms v2024.4.1113

  • Windows Server with RDS

  • .NET Framework version: 4.7.1

  • Application in VB.NET (WinForms)

Please let us know if any logs, test files, or further information is required.

Best regards,
André Borges,
F3M

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Apr 2025
1 answer
10 views

I have a RadPageView in Strip mode with 18 tabs on it.

When the form is created I set the tabs to two rows, with 9 on each row, using this approach:

As the form is resized, I recalculate and set the width of the tabs (RadPageViewPage.ItemSize) so that they will continue to fit.

When I resize the form by dragging this works - the tabs resize and I can see all 9 on each row.

However, when I minimize/maximize the form the tabs are not resized (although I can see that the sizes are set correctly). If I hide and then reshow the application (by clicking on the icon in the taskbar) then I see the sizes are again set (to the same value) and this time they are redrawn, so show correctly.

Maximized (new width set but tabs aren't redrawn):


Hide then show (no other changes - the widths are set but to the same values as in the above image):

Similarly...

Minimize (new width set but tabs aren't redrawn, so they overflow to the right):



Hide then show (no other changes - the widths are set but to the same values as in the above image):



I have tried calling Refresh() on the RadPageView control and the RadPageViewStripElement, but to no avail.

So, is there any way to force the tabs to be redrawn when I set the new width?

Or is there an alternative solution?

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Apr 2025
2 answers
11 views

Is it possible to assign an SVG image to use as the image displayed in the RadMessageBox? 

 

I notice that PictureBox is used rather than RadPictureBox, RadPictureBox supports SVG and it seems that PictureBox does not. Is there a reason why it cannot use RadPictrureBox?

The reason I ask, is that when specifying the image directly, it does not scale nicely when used on monitors with different DPI.

Thanks
Toby

Toby
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 17 Apr 2025
1 answer
14 views

I have a scenario where we need to manually size and position all of the controls in a certain window.  We need the size/position to be the same regardless of the DPI scaling on the system.  For standard Winforms controls, I can simply set the Window's AutoScaleMode property to 'None'.  That will prevent the controls from auto-scaling as desired.  However, if I have any Telerik controls in the Window, they are always automatically scaled no matter what I set the AutoScaleMode property to.

I know that there is a static RadControl.EnableDpiScaling property that can be used.  If I set that to false, then that will indeed disable auto-scaling for any Telerik controls.  However, that is a global setting.  I do not want to disable auto-scaling across the entire application.  I just need to disable it for a particular window.

Is this possible?

Thanks,

--Darren

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Apr 2025
1 answer
11 views

Hi,

When I add a RadListView to the RadForm, the entire list view has a border. However, as soon as I add rows, the right border below the rows disappears.

What setting can I use to ensure that a full right border is always visible?

 

Kind regards,

Guido

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Apr 2025
0 answers
11 views
when i design set on rad form in telerik when i closed and reopen the page the control of increase the size of control  how to manage
manish
Top achievements
Rank 1
 updated question on 11 Apr 2025
1 answer
22 views

I've got a radgridview consisting of approximately 280 rows and 100 columns (some non-visible), made by autogenerating columns based on a dynamic temp-table in the datasource. After opening the query I'm setting for approximately 15 rows the Ispinned property to true:

radGridView...:Rows[i]:PinPosition = Telerik.WinControls.UI.PinnedRowPosition:TOP.

Based on the information the profiler provides, this takes around 7 seconds per call. This is way to slow since the program has to recreate the dynamictemp-table and associated information by querying the database each 30s.

The pinning of the rows is already encapsulated by a beginupdate on the grid table element.  Setting certain properties to false of the grid didn't result in a speed up.

What did make the pinning of the rows faster was when the query had less rows.

How could this be faster? Is it possible to pin the rows while the query is retrieving its results or before instead of after?

 
Dinko | Tech Support Engineer
Telerik team
 answered on 10 Apr 2025
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?