To reproduce:
- Add four buttons to a RadForm
- On each button click use ThemeResolutionService to change the theme
=> the form size increases in height
Workaround:
Set the MaximumSize of the form to the current form size prior changing the theme and then remove this setting:
private void radButton1_Click(object sender, EventArgs e)
{
this.MaximumSize = this.Size; ;
ThemeResolutionService.ApplicationThemeName = "Office2010Blue";
this.MaximumSize = Size.Empty;
}
The size of RadForm under Windows XP is incorrect when its initial state as MDI child is Maximized and after that the state is changed to Normal.
Workaround:
Imports Telerik.WinControls.UI
Public Class BaseRadForm
Inherits RadForm
Private Shared LastWindowState As FormWindowState = FormWindowState.Normal
Private Shared suspendClientSizeChangedFlag As Boolean = False
Protected Overrides Sub OnResizeBegin(ByVal e As System.EventArgs)
Me.MaximumSize = New Size(0, 0)
MyBase.OnResizeBegin(e)
End Sub
Protected Overrides Sub OnActivated(ByVal e As System.EventArgs)
Me.MaximumSize = New Size(0, 0)
MyBase.OnActivated(e)
End Sub
Protected Overrides Sub OnDeactivate(ByVal e As System.EventArgs)
Me.MaximumSize = New Size(0, 0)
MyBase.OnDeactivate(e)
End Sub
Protected Overrides Sub OnClientSizeChanged(ByVal e As System.EventArgs)
Dim osInfo As System.OperatingSystem = System.Environment.OSVersion
If (suspendClientSizeChangedFlag OrElse osInfo.Version.Major >= 6) Then
Return
End If
If Not LastWindowState.Equals(Me.WindowState) Then
LastWindowState = Me.WindowState
If Me.WindowState.Equals(FormWindowState.Normal) Then
suspendClientSizeChangedFlag = True
Me.MaximumSize = New Size(500, 500)
suspendClientSizeChangedFlag = False
ElseIf Me.WindowState.Equals(FormWindowState.Maximized) Then
Me.MaximumSize = New Size(0, 0)
End If
Else
Me.MaximumSize = New Size(0, 0)
End If
MyBase.OnClientSizeChanged(e)
End Sub
End Class
When Windows aero effects are enabled and the form width is being decreased, the title bar text appears over the title bar buttons and further more when continuing reducing the width of the form the buttons disappear and a small black rectangle is shown instead.
Under specific circumstances and in Windows 2008 Server environment the RadTabStrip internally used in RadDock does not get a proper size.
Workaround:
bool performLayout = false;
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
if (this.WindowState == FormWindowState.Minimized)
{
this.performLayout = true;
}
else if (this.performLayout)
{
//reset padding to force bounds update
this.Padding = new Padding(1);
this.Padding = Padding.Empty;
this.performLayout = false;
}
}
Basically, you need to override the OnSizeChanged method of the main form and first set and then reset its Padding when the it goes from Minimized to another state. This will trigger that internal layout mechanisms of our controls and you will get the RadGridView shown as expected.
If you fill a WrapLayoutPanel with some content and set it to the ViewPort property of the RadScrollViewer, you will notice that RadScrollViewer will not scroll the panel correctly. Workaround: http://www.telerik.com/forums/scrolling-using-wraplayoutpanel#yirv_YCJAESwbvexlHks8Q
RadSplitButton does not get a focus rectangle when focus by the Tab key. One should first click the action part and then the focus rectangle will appear..
The current workaround is:
public class MyRadSplitButton : RadSplitButton
{
protected override void OnEnter(EventArgs e)
{
base.OnEnter(e);
this.DropDownButtonElement.ActionButton.Focus();
}
}
When the RadForm is used as MDI Child hosted by RadDock, the rendering of the form is not appropriate.
For example:
To reproduce: Add nodes to RadTreeView with at least 3 levels hierarchy. Set some of the last level nodes Visible property to false. Start the application. Expand some nodes and scroll. You will notice that the last item will change sometimes. Workaround: Set this.radTreeView1.TreeViewElement.AllowArbitraryItemHeight = true; Use ItemHeight = 1, instead of Visible = false
The Enabled property cannot be set in PropertyBuild if the RadTreeView is already data-binded via Property builder Workaround: Set the property at run-time.
To reproduce:
radTreeView1.Filter = "new";
radTreeView1.Nodes.Add("new Node");
for (int i = 0; i < 1000; i++)
{
radTreeView1.Nodes.Add(new RadTreeNode("test"));
}
Workaround:
radTreeView1.TreeViewElement.Update(RadTreeViewElement.UpdateActions.Reset);
On the first click, the ContextMenu (or commandbar menu) will be shown with scrollbars. If I dismiss and immediately click again, the scrollbars are now gone. Although it is not consistent, for some menu items, the scrollbars are always shown.
In the following scenario, the item's text in the drop-down list shows different text from the selected item.
When the document is open in a web browser :
When the document is open in the RadPdfViewer control.
Editor open and editor closed:
The content is exported correctly, but the following error occurs: