Unplanned
Last Updated: 23 Apr 2020 15:34 by ADMIN
Created by: Tinus
Comments: 0
Category: UI for WinForms
Type: Bug Report
2

1. Set HDPI on your monitor (for example 150%)

2. Set RadDataEntry data source in RunTime

You will see that RadDataEntry hosted controls are not scaled correctly.

Note that there is a related problem if the data source is set in design time. Controls themselves will be scaled correctly, however, text box hosted control's High will not be scaled correctly.

Workaround:
You can subscribe to ItemInitializing event before you set the DataSource and proceed by scaling RadDataEntry hosted controls manually as shown in the following code snipped.

private void radButton1_Click(object sender, EventArgs e)
{
    this.radDataEntry1.ItemInitializing += RadDataEntry1_ItemInitializing;
    this.radDataEntry1.ItemDefaultSize = new Size(200, 26);

    radDataEntry1.DataSource = new Employee
    {
        FirstName = "Sarah",
        LastName = "Blake",
        Occupation = "Supplied Manager",
        StartingDate = new DateTime(2005, 04, 12),
        IsMarried = true,
        Salary = 3500,
        Gender = Gender.Female
    };         
}
private void RadDataEntry1_ItemInitializing(object sender, ItemInitializingEventArgs e)
{
    if (this.radDataEntry1.RootElement.DpiScaleFactor.Width != 1)
    {
        foreach (Control control in e.Panel.Controls)
        {
            control.Scale(this.radDataEntry1.RootElement.DpiScaleFactor);
        }
    }
}

Unplanned
Last Updated: 28 Apr 2020 11:18 by ADMIN

1. Set the DPI of your main monitor to 150% and the DPI of your secondary monitor to 100%.

2. Start your main form containing RadDataEntry on your secondary monitor.

You will see that that hosted controls inside RadDataEntry are not scaled correctly.

 

Workaround:

Start your main form on your secondary monitor inside OnShown event.

protected override void OnShown(EventArgs e)
{
    base.OnShown(e);

    this.Location = new Point(-800, 100);
}

 

Completed
Last Updated: 25 Jul 2018 06:53 by ADMIN
Unplanned
Last Updated: 10 Sep 2019 05:20 by ADMIN
Unplanned
Last Updated: 01 May 2019 10:30 by ADMIN
Created by: Canon Fazenbaker
Comments: 0
Category: UI for WinForms
Type: Bug Report
2
Open the attached file and search for "test". In addition the Find dialog disappears for some time after the result is shown.
Declined
Last Updated: 09 Sep 2021 08:58 by ADMIN
Created by: Haim
Comments: 2
Category: UI for WinForms
Type: Feature Request
2
   
Unplanned
Last Updated: 20 Jul 2020 11:36 by ADMIN
Created by: Patrick
Comments: 0
Category: UI for WinForms
Type: Feature Request
2
JavaScript actions cause a script to be compiled and executed by the JavaScript interpreter. Depending on the nature of the script, the values of the interactive form fields in the document can be validated or updated or the visual appearances of the fields can be changed.
Declined
Last Updated: 16 Feb 2024 19:56 by ADMIN

I have a form which contains TreeView control. I need to convert it to RadTreeView. So I replaced TreeView control with RadTreeView and TreeNode with RadTreeNode in the code. I found that the events in both are different, so tried to replace the events with similar events in RadTree.

Following are the events that I have replaced in my code :

1.  

        Private Sub TreeView1_AfterExpand(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles tvMain.AfterExpand

Replaced by -

        Private Sub TreeView1_AfterExpand(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RadTreeViewEventArgs) Handles tvMain.NodeExpandedChanged   

2.

            Private Sub TreeView1_AfterCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles tvMain.AfterCollapse

  Replaced by -  

            Private Sub TreeView1_AfterCollapse(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RadTreeViewEventArgs) Handles tvMain.NodeExpandedChanged

and included Expanded flag to check if it is expand or collapse.

Here, I noticed unwanted firing of this replaced event when compared to the old event, but I handled it using the Expanded flag.

3.

        Private Sub tvMain_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles tvMain.AfterSelect

Replaced by -

        Private Sub tvMain_AfterSelect(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.RadTreeViewEventArgs) Handles tvMain.SelectedNodesChanged

This event gets fired twice while clicking on a node.

My main issues are,

  • During the initial load of the form, the tree gets populated and at that time the select event (mentioned in point 3) fires automatically in my old project in which TreeView is used. But in the new project, during the load of the form the replaced event is not fired.
  • Similarly, when I clicks a node , the replaced select event fires twice. After that I have a button in the same form which works like, when we click on a node and then click on the add button it will add a new node to the tree under the selected node. Now the functionality of the button doesnt work because, within the click function of add button, treeView1.selectedNode is 'Nothing'. Eventhough the select event is fired on clicking the node, the selectednode is 'Nothing' inside the click function of add button.
Unplanned
Last Updated: 20 Nov 2017 16:18 by ADMIN
How to reproduce: enabled High DPI scaling and create a form as an MDI child with a RadDataEntry control in it
Workaround:  handle the Shown event of the MDI child and manually perform the scaling
private void radButtonElement1_Click(object sender, EventArgs e)
        {
            var view = new RadForm1
            {
                MdiParent = this
            };
            
            view.Shown += View_Shown;
            view.Show();
        }

        private void ScaleRadControls(Control c)
        {
            foreach (var item in c.Controls)
            {
                Control control = item as Control;
                if (control == null)
                {
                    continue;
                }

                this.mi.Invoke(control, new object[] { this.FormElement.DpiScaleFactor, BoundsSpecified.All });
                ScaleRadControls(control);
            }
        }

        MethodInfo mi;
        private void View_Shown(object sender, EventArgs e)
        {
            this.mi = typeof(Control).GetMethod("ScaleControl", BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[] { typeof(SizeF), typeof(BoundsSpecified) }, null);
            RadForm1 v = sender as RadForm1;
            if (v != null)
            {
                ScaleRadControls(v.radDataEntry1.PanelContainer);
            }
        }
Completed
Last Updated: 01 Sep 2020 14:53 by ADMIN
Release R3 2020
Please refer to the attached gif file. The activated editor for the text field shouldn't change the font. 
Completed
Last Updated: 13 May 2019 21:18 by Kevin
Release R2 2019 (LIB 2019.1.415)
Created by: Benjamin
Comments: 6
Category: UI for WinForms
Type: Bug Report
2

Use attached to reproduce.

Workaround:

public RadForm1()
{
    InitializeComponent();
    radPdfViewer1.ContainerElement.BookmarksTree.SelectedNodeChanged += BookmarksTree_SelectedNodeChanged;
}

private void BookmarksTree_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e)
{
    Telerik.Windows.Documents.Fixed.Model.Navigation.BookmarkItem bookmark = e.Node.Tag as Telerik.Windows.Documents.Fixed.Model.Navigation.BookmarkItem;

    if (bookmark != null && bookmark.Destination == null)
    {
        GoToAction goToAction = bookmark.Action as GoToAction;
        if (goToAction != null && goToAction.Destination != null)
        {
            radPdfViewer1.PdfViewerElement.GoToDestination(goToAction.Destination);
        }
    }
}

Declined
Last Updated: 14 Aug 2020 10:29 by ADMIN
Created by: Binshidha
Comments: 2
Category: UI for WinForms
Type: Bug Report
2

Hi Dess,

I have encountered some other issue here. text of the button is not displaying in this case.

I have set DrawText property as true, UseCompatibleTextRendering as true and TextImageRelation as true. still the text is not displaying only the image is showing. Could you please go thruogh the same project again

 

attaching the previous link https://feedback.telerik.com/winforms/1480197-event-not-firing-in-commandbar-button-in-radcommandbar-button

Thanks

Binshidha

Completed
Last Updated: 07 Aug 2024 15:11 by ADMIN
Release 2024.3.806 (2024 Q3)
Created by: Nadya
Comments: 0
Category: UI for WinForms
Type: Feature Request
2
Similar to VisualStudio2022Light theme blending. Provide an easy way to change the palette for the Windows 11 themes. 
Completed
Last Updated: 18 Oct 2021 09:56 by ADMIN
Release R3 2021 SP1 (LIB 2021.3.1019)
Created by: Paul
Comments: 2
Category: UI for WinForms
Type: Bug Report
2
On some (but not all!) systems (including my development laptop) an application using RadOpenFileDialog completely hangs (freezes) when e.g. selecting another directory in the RadOpenFileDialog.
Completed
Last Updated: 10 Jun 2022 08:46 by ADMIN
Release R2 2022 SP1

HI,

 

Exploring the Demo Winforms FilterView component a bug is present.

When you expand several categories ,the automatic Vertical Scroll bar is showed but the "Maximum"  property value is wrong.

You can't see all the items inside. Some items are hidden at bottom.

But if you collapse some category the new "Maximum" values takes the right previous value before collapsing showing more space as expected

I have a workaround to prevent this situation calling CategoryExpandedChanged event.

Firstly I need to call Application.DoEvents() in order to resizing internally by the component all the StackLayoutPanels connaining the Category Items 

After that, I call the private method UpdateScrollBars (Suggested by support) and the ScrollBar takes the right size for its content.

Now I can show all the contained items inside the FilterView panel.

 

FRC

 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        public RadForm1()
        {
            InitializeComponent();
            DataTable dt = new DataTable();
            for (int i = 0; i < 20; i++)
            {
                dt.Columns.Add("col" + i, typeof(string));
            }
            for (int i = 0; i < 10; i++)
            {
                DataRow r = dt.NewRow();
                foreach (DataColumn col in dt.Columns)
                {
                    r[col.ColumnName] = Guid.NewGuid().ToString();
                }
                dt.Rows.Add(r);
            }
            this.radFilterView1.DataSource = dt;
          
        }


        private void radFilterView1_CategoryCreated(object sender, Telerik.WinControls.UI.FilterView.FilterViewCategoryCreatedEventArgs e)
        {
            e.Category.ExpandedChanged += Category_ExpandedChanged;
            e.Category.Expanded = false;

        }

        private void Category_ExpandedChanged(object? sender, EventArgs e)
        {
            // You need pass the control to Windows main loop to perform the pending telerik events after property Expanded change in order to resize internally
            // the StackLayoutPanel Containers before calling UpdateScrollBars
            Application.DoEvents();
            // Now your code
            MethodInfo mi = typeof(RadFilterViewElement).GetMethod("UpdateScrollbars", BindingFlags.Instance | BindingFlags.NonPublic);
            mi.Invoke(this.radFilterView1.FilterViewElement, new object[] { this.radFilterView1.FilterViewElement.ElementsPanel.Size });
            // Hide the horizontal scrolll bar
            radFilterView1.FilterViewElement.HorizontalScrollBar.Visibility =ElementVisibility.Collapsed;
        }

    }

Completed
Last Updated: 08 Oct 2020 11:48 by ADMIN
Release R3 2020 SP1
Completed
Last Updated: 24 Sep 2021 09:02 by ADMIN
Release R3 2021 SP1
Created by: Jana
Comments: 0
Category: UI for WinForms
Type: Bug Report
2

When we have start position set to center screen:

            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

RadForm does not calculate the correct location of the form on HDPI devices.

Completed
Last Updated: 21 May 2015 08:11 by ADMIN
As workaround please, rename the controls with Find & Replace from VS Editor.
Completed
Last Updated: 19 May 2022 14:24 by ADMIN
Release R2 2022 SP1

Setting the SyntaxEditorElement.HorizontalScrollBar.Visibility property to Collapsed indeed hides the horizontal scrollbar but it is still measured and arranged and overlaps the view if you shrink the view: