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
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
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?
I have a Winform that includes a Grid that my Users can edit by adding/removing columns.
I have an Object ("gridProps" class) that holds all of the "grid" properties,
gridProps.Columns property replaces the default (text) editor with my own popup radForm that works very much like your own "Columns" property for radGrid. When the user clicks into that Property on the PropertyGrid, you get a string representation and a "..." button. Clicking on that button bring up my "Columns Editor" radForm and takes over until "OK" or "Cancel"
Everything works...except: The user can click into "Columns" on the PropertyGrid and it automatically opens the "Textbox" editor inside the PropertyGrid and the user can type away. Nothing happens with this input - my TypeConverter sees to that but they are still allowed to type whatever they want until they click away or hit enter/tab etc.
Is there a way to PREVENT the user from typing anything but STILL ALLOW them to click the "..." button?
I'm trying to mimic exactly how Telerik RadGrid's Columns property works.
Any advice would be helpful and appreciated!
-C
We have been using the TreeView in our software for some time now. However, recently, we noticed that it's not behaving as we have coded it. We had code that changed the Forcolor and Font when a node was selected. However, this doesn't seem to be working anymore. Attached is a sample code. Any help would be greatly appreciated.
FYI, we are using Telerik for Winforms: 2024.3.924.462
TIA
using System;
using System.Collections.Generic;
using System.Drawing;
using Telerik.WinControls;
using Telerik.WinControls.UI;
namespace TestNodeColorChange
{
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
#region Private Fields
private string selectedNodeKey = string.Empty;
#endregion Private Fields
#region Public Constructors
public RadForm1()
{
InitializeComponent();
Load += FormLoading;
}
#endregion Public Constructors
#region Private Methods
private void FormLoading(object sender, EventArgs e)
{
List<TreeViewData> list = new List<TreeViewData>()
{
new TreeViewData { key = 1, DisplayValue = "Level 1" },
new TreeViewData { key = 2, parentKey = 1, DisplayValue = "Branch A" },
new TreeViewData { key = 3, parentKey = 1, DisplayValue = "Branch B" },
new TreeViewData { key = 4, parentKey = 1, DisplayValue = "Branch C" }
};
radTreeView1.ChildMember = "key";
radTreeView1.DisplayMember = "DisplayValue";
radTreeView1.ParentMember = "parentKey";
radTreeView1.DataSource = list;
radTreeView1.ExpandAll();
radTreeView1.SelectedNodeChanged += SelectedNodeChanged;
radTreeView1.NodeFormatting += NodeFormatting;
}
private void NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
{
if (e.NodeElement is LightVisualElement lve)
{
lve.ResetValue(VisualElement.ForeColorProperty, ValueResetFlags.Local);
lve.ResetValue(VisualElement.FontProperty, ValueResetFlags.Local);
if (e.Node.Value.ToString() == selectedNodeKey)
{
lve.Font = new Font(lve.Font.FontFamily, lve.Font.Size, FontStyle.Bold);
lve.ForeColor = Color.Purple;
radTreeView1.NodeFormatting -= NodeFormatting;
radTreeView1.Refresh();
radTreeView1.NodeFormatting += NodeFormatting;
Console.WriteLine("NodeFormatting: " + selectedNodeKey);
Console.WriteLine("NodeFormatting: " + e.NodeElement.ForeColor.ToString());
Console.WriteLine("NodeFormatting: " + ((e.NodeElement.Font.Style & FontStyle.Bold) != 0));
}
}
}
private void SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
{
selectedNodeKey = e.Node.Value.ToString();
Console.WriteLine("SelectedNodeChanged: " + selectedNodeKey);
radTreeView1.Nodes.Refresh();
}
#endregion Private Methods
#region Internal Classes
internal class TreeViewData
{
#region Public Properties
public string DisplayValue { get; set; }
public int key { get; set; }
public int? parentKey { get; set; }
#endregion Public Properties
}
#endregion Internal Classes
}
}
Hi,
I've been struggling to work out how to export the current pdf page as shown in the pdfViewer after it has been rotated using controls in the pdfViewerNavigator. I'm trying to save the image in png format but it seems to export the page in the original orientation ignoring the applied rotation.
Also whilst searching the forum for a solution, I came across the code
this.radPdfViewer1.PdfViewerElement.CurrentPage.PageNo
but it appears that PageNo no longer exists in 2020.3.1020.
Currently i'm using
pdfViewer.ExportPage ( 0, _tempImageFileName, 1.0, true, ImageFormat.Png );
which exports the first page as a png, which works, I just need to save the currently selected page that may or may not have been rotated.
Is this possible, if so how ?