Completed
Last Updated: 26 Nov 2015 09:28 by ADMIN
ADMIN
Dimitar
Created on: 20 Oct 2015 11:37
Category: Editors
Type: Bug Report
0
FIX. RadTextBoxControl - exception when the control has scrollbar, it is placed inside RadDock and the form is minimized.
To reproduce:
 Create a Windows Forms project
- Add a RadDock.
- Add 1 DocumentWindow and 1 ToolWindow to the RadDock control.
- Add a RadTextBoxControl to the DocumentWindow. Give it a height that will allow you to easily scroll.
- Run the application and enter enough text into the text box to make the scrollbar appear.
- Scroll to the bottom of the textbox.
- Minimize the application.

Workaround:
public class MyScroller : TextBoxScroller
{
    public MyScroller(RadScrollBarElement scrollbar)
        : base(scrollbar)
    { }
    public override int Value
    {
        get
        {
            return base.Value;
        }
        set
        {
            if (value < this.MaxValue)
            {
                base.Value = value;
            }
            
        }
    }
}

Change it as follows:
 radTextBoxControl1.TextBoxElement.ViewElement.VScroller = new MyScroller(radTextBoxControl1.TextBoxElement.VScrollBar);
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments