To reproduce: follow the steps from the attached gif file. Workaround: public RadForm1() { InitializeComponent(); ((RadRibbonFormBehavior)this.FormBehavior).AllowTheming = false; }
The issue exists in Fluent, Material, and Crystal themes.
To reproduce:
Create an MDI application and maximize the child form.
The child form buttons are not styled.
When a set of RadForms is used inside an MDI Form and are maximized, after some time, the child forms flicker continuously.
See the attached video.
The same behaviour DOES NOT happen when regular Windows Form is used.
To reproduce: Create a RadForm, select a material theme from the ToolBox, and apply the theme to the Form. Set the size of the Form to anything simple like (300, 300) and then save and close out the Form. When you reopen the same Form it will grow to (304, 302). Please refer to the attached gif file. Workaround: set the size at run time.
To reproduce: - Hide the border and change the BackColor of the form. - Dock a MenuStrip to the top. - You will notice that there are 2 pixels on the left and right sides of the menu. Project is attached as well.
Using the spellchecker, and the popup when using themes overlaps as per image below. If i make :
e.SpellingForm.Controls("buttonIgnoreAll").Visible = False
Regards
Gavin
1.download and install the telerik trial version for ui winforms for desktop latest version 2019. 219.
2.open new project with blank template.
3.create radform and set Radform1 as mdi form. And open a child page from this..
CHild page takes 4 seconds to load. Though child page has only grid view and loads only 6000 records
Hi
Please note that I have installed trial version of telerik ui winforms desktop. The problem now is when I open the child page it always takes minimum 4 seconds to load.The child page just contains the radgridview and loads just 6000records.
We are not satisfying with this performance.
Based on the support we will decide to purchase this tool.
We need your assistance asap.
1.download and install the telerik trial version for ui winforms for desktop latest version 2019. 219.
2.open new project with blank template.
3.create radform and set Radform1 as mdi form. And open a child page from this..
CHild page takes 4 seconds to load. Though child page has only grid view and loads only 6000 records
Thanks
Sathish.
How to reproduce: Add a StatusStrip to the form and set the FormBorderStyle to FixedSingle, you will notice that the form can be resized using the sizing grip of the status strip Workaround: public partial class Form2 : RadForm { public Form2() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.FixedSingle; } protected override FormControlBehavior InitializeFormBehavior() { return new CustomRadFormBehavior(this, true); } } public class CustomRadFormBehavior : RadFormBehavior { public CustomRadFormBehavior(IComponentTreeHandler treeHandler, bool shouldCreateChildren) : base(treeHandler, shouldCreateChildren) { } public override bool HandleWndProc(ref Message m) { if ((m.Msg) == NativeMethods.WM_NCLBUTTONDOWN) { Point screenLocation = new Point(m.LParam.ToInt32()); Point location = this.GetMappedWindowPoint(screenLocation); RadElement itemUnderMouse = this.Form.ElementTree.GetElementAtPoint(location); MouseEventArgs args = new MouseEventArgs(Control.MouseButtons, 1, location.X, location.Y, 0); bool isFixed = false; if (this.Form != null && this.Form.FormBorderStyle == FormBorderStyle.Fixed3D || this.Form.FormBorderStyle == FormBorderStyle.FixedDialog || this.Form.FormBorderStyle == FormBorderStyle.FixedSingle || this.Form.FormBorderStyle == FormBorderStyle.FixedToolWindow) { isFixed = true; } if (isFixed && itemUnderMouse != null && itemUnderMouse.Enabled && !object.ReferenceEquals(itemUnderMouse, (this.Form.RootElement.Children[0] as RadFormElement).TitleBar)) { return true; } } return base.HandleWndProc(ref m); } }
To reproduce: Add a RadForm and at design time in the Properties section of Visual Studio try to customize some properties of the RadForm >> FormElement >> TitleBar, e.g. Padding, ForeColor. You will notice that even though you save the changes, they are not serialized. Thus, when you run the application, none of the changes are applied. Workaround: set the changes programmatically at run time.
To reproduce: - Set the icon of the form. - Set the FormBorderStyle to FixedToolWindow. - The default icon is displayed in the taskbar. Workaround: public RadForm2() { InitializeComponent(); this.ShowIcon = true; } protected override void OnShown(EventArgs e) { base.OnShown(e); this.FormElement.TitleBar.IconPrimitive.Visibility = ElementVisibility.Collapsed; }
To reproduce:
1. Use the 2020.3.1020 Telerik version
2. Show RadForm and set MinimumSize property
3. Double Click the Title Bar to maximize the form or click the Maximize button
4. Double Click the Title Bar again and see that no border is shown.
Thanks
How to reproduce: public partial class RadForm1 : RadForm { public RadForm1() { InitializeComponent(); this.AllowTheming = false; this.FormBorderStyle = FormBorderStyle.FixedSingle; } } Workaround: public partial class RadForm1 : RadForm { public RadForm1() { InitializeComponent(); this.AllowTheming = false; this.FormBorderStyle = FormBorderStyle.FixedSingle; } protected override FormControlBehavior InitializeFormBehavior() { return new MyRadFormBehavior(this, true); } } public class MyRadFormBehavior : RadFormBehavior { public MyRadFormBehavior(IComponentTreeHandler treeHandler, bool shouldCreateChildren) : base(treeHandler, shouldCreateChildren) { } public override bool HandleWndProc(ref System.Windows.Forms.Message m) { BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.NonPublic; if (m.Msg == NativeMethods.WM_NCHITTEST) { typeof(RadFormBehavior).GetMethod("OnWMNCHittest", bindingFlags).Invoke(this, new object[] { m }); return true; } if (!this.AllowTheming) { return false; } return base.HandleWndProc(ref m); } }
In this particular case, we have custom RadButtonElements placed in the title bar of the form. We have subscribed to the click event on each button. In the click event handlers, we are showing file dialogs. When clicking one time to show a dialog and the mouse leaves the title bar bounds, this triggers the click event twice, thus opening another dialog.
As a workaround, we could use the MouseDown event instead or raise a flag in the click event handler.
To reproduce, use the following code and minimize the child form:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
this.IsMdiContainer = true;
RadForm form = new RadForm();
form.Text = "MDI Child";
form.MdiParent = this;
form.MinimumSize = new Size(800,600);
form.Show();
}
}
Follow the steps which are illustrated in the gif file:
1. Create new .NetFrameWork Telerik WinForm project
2. Set the MinSize of the RadForm1 to 300, 300
3. Set the MaxDize of the RadForm1 to 600, 600
4. Save the Form
5. Close the form
6. Build the project
7. Add new Telerik form, inherit from RadFrom1 via the Add New Item form and picking Inherited Form (Windows Forms). When prompted, pick RadForm1.
8. Resize the new form
9. Save and Close the form.
10. Open RadForm1
11. Reset the Max Size
12. Save and Close RadForm1
13. Rebuild the project
14. Open the inherited form
Workaround: instead of adding an Inherited Form, add a Telerik RadForm. Then, change it to inherit from RadForm1:
To reproduce:
Workaround:
In the OnLoad method of RadForm do through all nested RadControls inside the UserControl and downscale them to the same DPI as the RadForm.