Completed
Last Updated: 12 Apr 2016 12:05 by ADMIN
To reproduce:
- Set the mask like this:
private void RadForm1_Load(object sender, EventArgs e)
{
    radMaskedEditBox1.MaskType = MaskType.Regex;
    radMaskedEditBox1.Mask = "^[0-9]{6} [A-Z]{4} [0-9]{7}$|^[0-9]{5}$";
}
- Start the application, enter five digits and pres Tab.
- The error icon apperas.

Workaround:
- Set the Mask before the MaskType:
radMaskedEditBox1.Mask = "^[0-9]{6} [A-Z]{4} [0-9]{7}$|^[0-9]{5}$";
radMaskedEditBox1.MaskType = MaskType.Regex;
Unplanned
Last Updated: 07 Apr 2016 12:52 by ADMIN
To reproduce: 

Populate the AutoCompleteBox and start a search returning enough results to need the scrollbar. When clicking and dragging the scroll bar to scroll - if the cursor is not positioned directly over the scrollbar at the time you release the mouseclick, the dropdown list is closed an item is added to the selection.

Workaround: 
 public partial class Form1 : Form
    {
        bool isMouseDown = false;

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            AddAutoCompleteItems();
            radAutoCompleteBox1.ListElement.VScrollBar.MouseDown += ListElement_MouseDown;
            radAutoCompleteBox1.ListElement.VScrollBar.MouseUp += ListElement_MouseUp;
            radAutoCompleteBox1.TokenValidating += radAutoCompleteBox1_TokenValidating;
        }

        void radAutoCompleteBox1_TokenValidating(object sender, TokenValidatingEventArgs e)
        {
            e.IsValidToken = !isMouseDown;
            isMouseDown = false;
        }

        void ListElement_MouseUp(object sender, MouseEventArgs e)
        {
            RadListVisualItem el = radAutoCompleteBox1.ListElement.ElementTree.GetElementAtPoint(e.Location) as RadListVisualItem;

            if (el != null)
            {
                return;
            }
            
            isMouseDown = false;
        }

        void ListElement_MouseDown(object sender, MouseEventArgs e)
        {
            isMouseDown = true;
        }

        private void AddAutoCompleteItems()
        {
            RadListDataItemCollection items = this.radAutoCompleteBox1.AutoCompleteItems;

            items.Add(new RadListDataItem("Joe Smith", "joe@fakecompany.com"));
            items.Add(new RadListDataItem("Adam Petersen", "adam@qwerty.com"));
            items.Add(new RadListDataItem("Jack Russel", "jack@russel.nocom"));
            items.Add(new RadListDataItem("Daniel Finger", "daniel.pinger@gmail.com"));
            items.Add(new RadListDataItem("Richard Vail", "rvail@richardvail.com"));
            items.Add(new RadListDataItem("Sebastian Jonnson", "s.jonnson@sjonnson.com"));
            items.Add(new RadListDataItem("Lee Cooper", "lee.cooper@coopercoorp.com"));
            items.Add(new RadListDataItem("Kelvin Clain", "kclain@clainkevin.com"));
            items.Add(new RadListDataItem("Maria Jenson", "mjenson@mariajenson.com"));
            items.Add(new RadListDataItem("Chelsea Maarten", "chelsea@maarten.com"));
            items.Add(new RadListDataItem("Jenson Chew", "jenson.chew@nospam.com"));
            items.Add(new RadListDataItem("Martin Williams", "m.williams@martinandwilliams.com"));
            items.Add(new RadListDataItem("Telerik", "clientservice@telerik.com"));
            items.Add(new RadListDataItem("James Stone", "james.stone@manystones.com"));
            items.Add(new RadListDataItem("Samuel Jackson", "samuel.jackson@nojackson.com"));
        }
    }

    public class MyRadAutoCompleteBox : RadAutoCompleteBox
    {
        protected override RadTextBoxControlElement CreateTextBoxElement()
        {
            return new MyRadAutoCompleteBoxElement();
        }
    }

    public class MyRadAutoCompleteBoxElement : RadAutoCompleteBoxElement
    {
        protected override TextBoxViewElement CreateViewElement()
        {
            return new MyAutoCompleteBoxViewElement();
        }

        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(RadAutoCompleteBoxElement);
            }
        }
    }

    public class MyAutoCompleteBoxViewElement : AutoCompleteBoxViewElement
    {
        protected override int InsertTokenizedTextBlocks(int index, string text, bool performInvalidation)
        {
            bool isValid = performInvalidation ? this.OnTokenValidating(text) : true;

            if (!isValid)
            {
                return index;
            }
            return base.InsertTokenizedTextBlocks(index, text, performInvalidation);
        }
Unplanned
Last Updated: 30 Mar 2016 13:22 by ADMIN
To reproduce:
- Select the time from the drop down and press close button.
- Notice that the form is deactivated.

Workaround:
void radTimePicker1_LostFocus(object sender, EventArgs e)
{
    this.Activate();
}
Unplanned
Last Updated: 30 Mar 2016 13:18 by ADMIN
To reproduce:

1. Please refer to the attached sample project.
2. Run the project and click the button. The two RadTextBox controls are left aligned.
3. Close the opened form and click the button again. You will notice that the RadTextBox is not left aligned.

Workaround: use RadTextBoxControl.
Unplanned
Last Updated: 30 Mar 2016 13:18 by ADMIN
To reproduce:
- Add RadtextBox to a form and anchor it to the left and right.
- Set WindosState of the form to Maximized
- Start the application

Workaround
void RadForm1_Shown(object sender, EventArgs e)
{
    this.WindowState = FormWindowState.Maximized;
}
Unplanned
Last Updated: 30 Mar 2016 13:17 by ADMIN
To reproduce:
public RadForm1()
{
    InitializeComponent();

    this.radTextBoxControl1.Text = "Sample text with misspelledd word";
    RadSpellChecker spellChecker1 = new RadSpellChecker();
    spellChecker1.AutoSpellCheckControl = radTextBoxControl1;
}

private void radTextBoxControl1_ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
{
    RadMenuItem customItem= new RadMenuItem("Custom item");
    e.ContextMenu.Items.Add(customItem);
}

Workaround: use RadTextBox instead:
RadSpellChecker spellChecker1 = new RadSpellChecker();    
this.radTextBox1.Text = "Sample text with misspelledd word";
spellChecker1.AutoSpellCheckControl = this.radTextBox1;
TextBoxSpellChecker tbSpellChecker = spellChecker1.GetControlSpellChecker(typeof(RadTextBox)) as TextBoxSpellChecker;
tbSpellChecker.DropDownMenu.DropDownOpening += DropDownMenu_DropDownOpening;

private void DropDownMenu_DropDownOpening(object sender, CancelEventArgs e)
{
    RadDropDownMenu menu = sender as RadDropDownMenu;
    RadMenuItem customItem = new RadMenuItem("Custom item");
    menu.Items.Add(customItem);
}
Unplanned
Last Updated: 30 Mar 2016 13:17 by ADMIN
To reproduce:
1. Add ribbon with a tab, group and a RadTextBoxElement.
2. Open Edit UI Elements from the smart tag, select the TextBoxItem and set the MultiLine to true 
3. Run the app and the text box is not multiline

Workaround:
set it in code:             radTextBoxElement1.TextBoxItem.Multiline = true;

Unplanned
Last Updated: 30 Mar 2016 13:16 by ADMIN
ADMIN
Created by: Paul
Comments: 0
Category: Editors
Type: Bug Report
4
If the size of the text and icons on the screen is set to larger and the font of the text is set to 12 pixels. Letters that have tails below (such as: g, j, y) are not shown properly inside the text box. 

Workaround:

As a workaround one can set the minimum height of the text box to be as the height of the text and allow multi lines.

int textHeight = TextRenderer.MeasureText(this.radTextBox1.Text, this.radTextBox1.Font).Height;this.radTextBox1.TextBoxElement.TextBoxItem.MinSize = new Size(0, textHeight);this.radTextBox1.TextBoxElement.TextBoxItem.InvalidateMeasure();this.radTextBox1.TextBoxElement.TextBoxItem.UpdateLayout();this.radTextBox1.Multiline = true;
Unplanned
Last Updated: 30 Mar 2016 13:14 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: Editors
Type: Bug Report
0
To reproduce: 
- add a RadTextBox with empty Text property but NullText property has some value.
- change the Font style to Microsoft Sans Serif, 8.5pt. As a result the RadTextBox height is decresed a little and the NullText is cut off

Workaround: use Text property instead of NullText and cutomize its ForeColor to gray:
Font newFont = new Font("Microsoft Sans Serif", 8.5f);

public Form1()
{
    InitializeComponent();

    this.radTextBox1.Font = newFont;
    this.radTextBox1.Text = this.radTextBox1.NullText;
    this.radTextBox1.TextBoxElement.ForeColor = Color.Gray;
    this.radTextBox1.GotFocus+=radTextBox1_GotFocus;
    this.radTextBox1.LostFocus+=radTextBox1_LostFocus;

    this.radButton1.Select();
}

private void radTextBox1_LostFocus(object sender, EventArgs e)
{
   if (this.radTextBox1.Text==this.radTextBox1.NullText||this.radTextBox1.Text==string.Empty)
    {
        this.radTextBox1.Text = this.radTextBox1.NullText;
        this.radTextBox1.TextBoxElement.ForeColor = Color.Gray;
    }
    else
    {
         this.radTextBox1.TextBoxElement.ForeColor = Color.Black;
    }
}

private void radTextBox1_GotFocus(object sender, EventArgs e)
{
    if (this.radTextBox1.Text==this.radTextBox1.NullText)
    {
        this.radTextBox1.Text = string.Empty;
        this.radTextBox1.TextBoxElement.ForeColor = Color.Gray;
    }
    else
    {
         this.radTextBox1.TextBoxElement.ForeColor = Color.Black;
    }
}
Unplanned
Last Updated: 30 Mar 2016 13:10 by ADMIN
To reproduce:

this.radSpellChecker1.AutoSpellCheckControl = this.radTextBoxControl1;
this.radTextBoxControl1.Text = "this is a test [doc]";

private void radButton1_Click(object sender, EventArgs e)
{
    radSpellChecker1.Check(radTextBoxControl1);
}

The "[doc]" is underlined as misspelled. However, if you click the button, no mistakes will be found.

Workaround:

char[] punctuation = " .,!?-\\/|~!@#$%^&*()[]_+=;:".ToCharArray();
TextBoxSpellChecker tbSpellChecker = this.radSpellChecker1.GetControlSpellChecker(typeof(RadTextBoxControl)) as TextBoxSpellChecker;

FieldInfo fi = typeof(TextBoxSpellChecker).GetField("punctuation",
    System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
fi.SetValue(tbSpellChecker, punctuation);
Unplanned
Last Updated: 30 Mar 2016 13:09 by ADMIN
When users select the "Ignore All" on the certain word the other ocupation of this word still market as wrong.
Unplanned
Last Updated: 30 Mar 2016 13:09 by ADMIN
Unplanned
Last Updated: 30 Mar 2016 13:09 by ADMIN
example:

Imports Telerik.WinControls.UI
Imports Telerik.WinControls.RichTextBox.Proofing
Imports System.IO
Imports System.Globalization

Public Class Form1

    Dim radTextBox1 As RadTextBox = New RadTextBox
    Dim radSpellChecker1 As RadSpellChecker = New RadSpellChecker

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        radTextBox1.Parent = Me.Panel1
        radTextBox1.Multiline = True
        radTextBox1.Dock = DockStyle.Fill

        radSpellChecker1.SpellCheckMode = SpellCheckMode.WordByWord



        Dim textBoxControlSpellChecker As IControlSpellChecker = Me.radSpellChecker1.GetControlSpellChecker(GetType(RadTextBox))
        Dim documentSpellChecker As DocumentSpellChecker = TryCast(textBoxControlSpellChecker.SpellChecker, DocumentSpellChecker)
        Dim ms As New MemoryStream(My.Resources.sv_SE
                                   )
        Dim dictionary As New WordDictionary()
        dictionary.Load(ms)

        documentSpellChecker.AddDictionary(dictionary, CultureInfo.CurrentCulture)

        radSpellChecker1.SpellCheckMode = SpellCheckMode.AllAtOnce

    End Sub

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
     
        Me.radSpellChecker1.Check(Me.radTextBox1)
    End Sub
End Class
Unplanned
Last Updated: 30 Mar 2016 08:51 by ADMIN
ADMIN
Created by: Dimitar
Comments: 0
Category: Editors
Type: Bug Report
2
To reproduce:
- Set the mask to numeric.
- Change the value and check the Modified property.

- Workaround:
string oldValue = string.Empty;

void radMaskedEditBox1_LostFocus(object sender, EventArgs e)
{
    if (oldValue != radMaskedEditBox1.Text)
    {
        radMaskedEditBox1.Modified = true;
    }
    else
    {
        radMaskedEditBox1.Modified = false;
    }

    oldValue = radMaskedEditBox1.Text;
}
Unplanned
Last Updated: 30 Mar 2016 08:51 by ADMIN
To reproduce:
 radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
 radMaskedEditBox1.Mask = "000-000-0000";

- Paste: 999 999 9999 when there is no selected text.
Unplanned
Last Updated: 30 Mar 2016 08:50 by ADMIN
To reproduce:
- Set the mask like this:
 radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
 radMaskedEditBox1.Mask = "000-000-0000";

- Select the entire content and paste the following: 66677711111

Unplanned
Last Updated: 29 Mar 2016 12:04 by ADMIN
To reproduce:
- Change the culture of the RadDateTime picker to Russian.
- Change the month to August and select the month part when the drop down is closed.

Workaround:
radDateTimePicker1.Format = DateTimePickerFormat.Custom;
radDateTimePicker1.CustomFormat = "dd/MMM/yyyy";
Unplanned
Last Updated: 29 Mar 2016 11:57 by ADMIN
To reproduce:
- Set the font for all dates.
- Zoom In and out.

Workaround:
Use the ZoomChanged event and change the font while one zooms as well.
Unplanned
Last Updated: 29 Mar 2016 11:57 by ADMIN
To reproduce:
public Form1()
{
    InitializeComponent();
    AddDateTime();
    radDateTimePicker1.ValueChanged += radDateTimePicker1_ValueChanged;
  
    radDateTimePicker1.Format = DateTimePickerFormat.Custom;
    radDateTimePicker1.CustomFormat = "dd/MM/yyyy HH:mm";

    AddButton();

}

void radDateTimePicker1_ValueChanged(object sender, EventArgs e)
{
    if (radDateTimePicker1.Value.Date.Hour == 0)
    {
        var date = radDateTimePicker1.Value.Date;
        radDateTimePicker1.Value = new DateTime(date.Year, date.Month, date.Day, 23, 59, 0);
    }
   
}

Workaround: 
Refocus the control and the value will be updated.
Declined
Last Updated: 22 Mar 2016 08:54 by ADMIN
Currently, when Delete is pressed the min values is set, however, the textbox should be cleared. 

This can be handled by using a custom provider:
public class MyFreeFormDateTimeProvider : FreeFormDateTimeProvider
{
    public MyFreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
        : base(mask, culture, owner)
    { }
    public override void KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyValue != 46)
        {
            base.KeyDown(sender, e);
        }         
    }
}