Steps to reproduce: - add RadForm to the project - drop a RadRibbonBar to the project - when asked to use RadRibbonFormBehavior, confirm with Yes - check the form size (height) and close it - reopen it and the size is changed - repeating the last two steps continues to increase the form height Workaround: change the parent of the form having the ribbon form behavior public partial class RadForm1 : CustomRadForm { public RadForm1() { InitializeComponent(); } } public class CustomRadForm : Telerik.WinControls.UI.RadForm { public new FormControlBehavior FormBehavior { get { return (FormControlBehavior)typeof(RadFormControlBase) .GetField("formBehavior", BindingFlags.Instance | BindingFlags.NonPublic) .GetValue(this); } set { this.ResetFormBehavior(false); if (value != null) { Size clientSize = this.ClientSize; typeof(RadFormControlBase) .GetField("formBehavior", BindingFlags.Instance | BindingFlags.NonPublic) .SetValue(this, value); typeof(RadFormControlBase) .GetMethod("PrepareBehavior", BindingFlags.Instance | BindingFlags.NonPublic) .Invoke(this, new object[] { }); this.RecreateHandle(); this.ClientSize = clientSize; } } } }
FIX. Pressing Escape does not trigger the Click event of the form's CancelButton.
it seems to be when I'm deriving from RadForm the NotifyPropertyChanged Doesn't seem to work It is binding to the Text Propery of the dockwindow. what i am trying to do is bind to a propery of my class called FormText (This is not the Frm.Text but Frm.FormText) a completly diffrent property. This is not possible to do with the below code. What I am ultimelty trying to do is have a class that is derived from RadForm so i can add a BindingSource to the form and load it with data. I'm then trying to bind to the Possition and Item Count fo the BindingSource to show the user what record/how many records there are. I need to re-bind this each time the tab is changed so the user is always seeing the records for the Selected form Resolution: Scenario is not common and the issue is not related directly to our form. Since our RadForm is ISupportInitialize and in the case that the developer does not call Form EndInitialize method the Microsoft binding will reject the binding because Form IsInitialized property is false. So these methods must be called: ((System.ComponentModel.ISupportInitialize)(radForm1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(radForm1)).EndInit();
Add a details section to RadMessageBox, so that in mimics standard error messages.
FIX. RadRibbonForm - ApplicationButtonElement and QuickAccessToolBar are cut off when Aero if off and the form is maximized
FIX. RadRibbonForm - setting the FormBorderStyle property does not take effect
Steps to reproduce. 1. Add a grid and a button to a form. 2. Set the button as the AcceptButton 3. Add a text column to the grid 4. Run the project, open a cell for edit, hit enter and the button will be clicked closing the form in the process.
1. Create RadRibbonForm and add code to start maximized 2. Add status strip with some items on the ribbon form 3. in the form constructor create a MDI child form, set it to start maximized and show it 4. The result is that there is gap between the child form and the status strip Workaround: protected override void OnShown(EventArgs e) { base.OnShown(e); this.WindowState = FormWindowState.Minimized; this.WindowState = FormWindowState.Maximized; }
Setting the RightToLeftLayout to true together with RightToLeft = Yes, cuts off the form
To reproduce: Change the monitors positions in the settings pane and try out on both monitors.
If the theme of your Windows 7 is 'Windows 7 Basic' and you have a RadForm as an mdi child., when you maximize this form, you will notice that there is a gap of several pixels between the parent form title bar and the client part of the child form. This can be worked around as shown below: Public Class MDIParent Public Sub New() InitializeComponent() End Sub Dim shouldGetSavedSize As Boolean = False Dim suspendResize As Boolean = False Dim formSize As Drawing.Size = Size.Empty Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click Dim form As RadForm = New RadForm form.MdiParent = Me form.Show() formSize = form.Size AddHandler form.Resize, AddressOf Form_Resize AddHandler form.SizeChanged, AddressOf Form_SizeChanged End Sub Private Sub Form_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim form As RadForm = DirectCast(sender, RadForm) If Not form.WindowState = FormWindowState.Maximized Then If suspendResize Then Return End If formSize = form.Size End If End Sub Private Sub Form_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Dim form As RadForm = DirectCast(sender, RadForm) If form.WindowState = FormWindowState.Maximized Then shouldGetSavedSize = True form.FormBorderStyle = Windows.Forms.FormBorderStyle.None Else If shouldGetSavedSize Then shouldGetSavedSize = False suspendResize = True form.FormBorderStyle = FormBorderStyle.Sizable form.Size = formSize suspendResize = False End If End If End Sub End Class
FIX. RadForm - setting the Visibility of the TitleBar to collapsed does not take effect until the form is resized.
Form command buttons incorrectly become visible in the following scenario: 1. Create a new Form. 2. Make the Form inherit from the RadRibbonForm class, or use the RadRibbonForm behavior. 3. Launch the application to display the new Form. 4. Click a few pixels below the Close, Maximize or Minimize buttons. 5. White buttons will appear with the same functionality as the Close, Maximize and Minimize buttons.
When setting an icon to RadForm, it should be resized automatically.
1. Create a new Form that inherits from RadForm and add some rad controls. 2. Checkin the file in your source control system 3. Open the form in design time will cause checkout
On Windwos XP , Windows Vista, Windows 7 the RadForm/ShapedForm hides the taskbar when it is set to Auto-Hide. When you try to show the taskbar it appears behind (under) the RadForm instead of infront (over) it.
If you set the RadForm's title bar to string that contains the ampersand symbol (&), the symbol is replaced with underline symbol.
If RadForm is an MDI child and it initially appears as Maximized, there is some space left between the bottom border of the child form and the bottom border of the parent form. In order to reprodue the issue, you should also have a RadMenu docked to top that has size bigger than its default size.
When you set the WindowState property to Maximized, the FormBorderStyle to None and the TopMost property to true, the RadForm does not render correctly if its size is equal to the screen size.
If you have a TextBox anchored to Top, Left, Right in a RadForm, the size that this TextBox gets when the form is shown may not be correct. Workaround: set the Dock = Fill setting after adding the controls/toolwindows in the forms