I've been trying to crack this nut for years without resolution. It's come full circle back to my desk so I'm once more exploring how to resolve this - I ask this question after hours of trying to find something inside the chain of objects that is RadDock with zero success and here's the worst part, it's such an obvious UI element that I'm shocked I've not been able to locate anything that might be the cause while in "Edit UI Elements"
ANY suggestions or hints is very appreciated!!
Here's the problem:
Adding control to ToolWindow and setting that control's .Dock property = Fill, the control DOES NOT FILL the entire available ToolWindow space.
*NOTE* I'm calling it "ToolWindow's Space" because I think that's what's doing it but IT MIGHT BE THE PARENT, "ToolTabStrip"!!! Please correct me if I'm wrong
Anyway, there's a 3-pixel GAP between the Panel and the ToolWindow (1st image "TW_BAD") I've painted the area I'm talking about in RED so you can see exactly what I'm referring to.
This has got to be either a Padding or a Border but regardless, how do I turn that off? Hide it? Make it Visible = Collapsed?
If anyone has this figured out, I can sure use a hand right now.
Kindest regards,
Curtis.
Hello Telerik Support Team,
i found a solution for using enum values in a grid in the knowledge base:
https://docs.telerik.com/devtools/winforms/knowledge-base/gridview-comboboxcolumn-enum
I tried to adapt it for my purpose:
My enum and column definitions are:
[Flags]
public enum SpartenFlags
{
[Display(Name = "Keine")]
None = 0,
Strom = 1,
Gas = 2,
Wasser = 4,
Abwasser = 8,
Breitband = 16,
[Display(Name = "Fernwärme")]
Fernwaerme = 32
}
gridViewComboBoxColumn2.EnableExpressionEditor = false;
gridViewComboBoxColumn2.FieldName = "Sparten";
gridViewComboBoxColumn2.HeaderText = "Sparten";
gridViewComboBoxColumn2.MinWidth = 25;
gridViewComboBoxColumn2.Name = "Sparten";
gridViewComboBoxColumn2.Width = 45;
gridViewComboBoxColumn2.DataSource = EnumWrapper<TBM_HAProzessPlugin.SpartenFlags>.EnumToList<TBM_HAProzessPlugin.SpartenFlags>();
gridViewComboBoxColumn2.DisplayMember = "Name";
gridViewComboBoxColumn2.ValueMember = "ID";
I override the view with a CustomGridImageCellElement (derived from GridDataCellElement) to display an icon depending on the combination of flag values. This works fine so far. But the filtering only works with single values. I would like to have a checkbox for each flag value and the filtering working correclty for every combination, that includes the checked values. Is there a way to archieve this?
Thank you for your help.
Best Regards,
Stephan
Hi!
How do I get the first visible item in RadListView?
And how do I set it up?
Like the TopItem property of a WinForms ListView.
Hey folks!
I need to display a lengthy list of "cards" or perhaps "cells" horizontally. There will be NO vertical scrolling. It would be nice if I can scroll horizontally by click+dragging.
Each "card/" will have an Image (thumbnail on the left or top) and some text (on the right or bottom)
I've used ListView for multiple UI requirements but I cannot figure out how to get the items to display "all horizontally" - the control wants to fill with Items until the last item that would normally have gone beyond the right side of the control and instead, it wraps to the next row below. This "wrapping" is what I need to prevent.
I've never used CardView but maybe this is the way I should go?
All thoughts/comments would be appreciated!
Kind regards,
LK
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;
}
}
}
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
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
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?
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
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