Approved
Last Updated: 30 Mar 2016 08:51 by ADMIN
ADMIN
Created by: Dimitar
Comments: 0
Category: Editors
Type: Bug Report
1
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;
}
Approved
Last Updated: 29 Mar 2016 10:23 by ADMIN
Workaround: 
((StackLayoutElement)this.radBrowseEditor1.BrowseElement.Children[2]).ShouldHandleMouseInput = false;
this.radBrowseEditor1.BrowseElement.TextBoxItem.RouteMessages = true;
Approved
Last Updated: 06 May 2016 13:13 by ADMIN
How to reproduce:
 public RadForm1()
 {
     InitializeComponent();

     this.radDateTimePicker1.Format = DateTimePickerFormat.Custom;
     this.radDateTimePicker1.CustomFormat = "MM/dd/yyyy";
     this.radDateTimePicker1.DateTimePickerElement.Calendar.HeaderNavigationMode = Telerik.WinControls.UI.HeaderNavigationMode.Zoom;
     ((Telerik.WinControls.UI.MaskDateTimeProvider)this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.Provider).AutoSelectNextPart = true;
 }

Workaround:
 public RadForm1()
 {
     InitializeComponent();

     this.radDateTimePicker1.Format = DateTimePickerFormat.Custom;
     this.radDateTimePicker1.CustomFormat = "MM/dd/yyyy";
     this.radDateTimePicker1.DateTimePickerElement.Calendar.HeaderNavigationMode = Telerik.WinControls.UI.HeaderNavigationMode.Zoom;
     ((Telerik.WinControls.UI.MaskDateTimeProvider)this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.Provider).AutoSelectNextPart = true;

     this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.KeyDown += TextBoxElement_KeyDown;

 }

 private void TextBoxElement_KeyDown(object sender, KeyEventArgs e)
 {
     RadMaskedEditBoxElement tb = (RadMaskedEditBoxElement)sender;
     MaskDateTimeProvider provider = (MaskDateTimeProvider)tb.Provider;

     switch (provider.List[provider.SelectedItemIndex].type)
     {
         case PartTypes.Month:
             if (e.KeyCode == Keys.Left)
             {
                 provider.SelectedItemIndex = provider.List.Count;
             }

             break;
         case PartTypes.Year:
             if (e.KeyCode == Keys.Right)
             {
                 provider.SelectedItemIndex = -1;
             }
             break;
     }
 }
Approved
Last Updated: 06 May 2016 13:19 by ADMIN
Workaround:
public Form1()
{
    InitializeComponent(););

    this.richTextBox1.Text = "thess is is a tesssset";

    this.radSpellChecker1.AutoSpellCheckControl = this.richTextBox1;
    this.radSpellChecker1.SpellingFormShowing += radSpellChecker1_SpellingFormShowing;
}

private void radSpellChecker1_SpellingFormShowing(object sender, SpellingFormShowingEventArgs e)
{
    e.SpellingForm.FormClosed -= SpellingForm_FormClosed;
    e.SpellingForm.FormClosed += SpellingForm_FormClosed;
}

private void SpellingForm_FormClosed(object sender, FormClosedEventArgs e)
{
    this.radSpellChecker1.AutoSpellCheckControl = null;
    this.radSpellChecker1.AutoSpellCheckControl = this.richTextBox1;
}
Approved
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();
}
Approved
Last Updated: 29 Mar 2016 10:23 by ADMIN
When you focus a RadTextBox you will notice the keyboard button that popups next to the focused control. However, for the RadAutoCompleteBox this keyboard button does not show.

Workaround: show it manually on the GotFocus event and hide it on the LostFocus event 

private void radTextBox1_GotFocus(object sender, EventArgs e)
{
    string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
    string keyboardPath = Path.Combine(progFiles, "TabTip.exe");
    Process.Start(keyboardPath);
}
 
private void radTextBox1_LostFocus(object sender, EventArgs e)
{
    var procs = Process.GetProcessesByName("TabTip");
    if (procs.Length != 0)
        procs[0].Kill();
}
Approved
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.
Approved
Last Updated: 30 Mar 2016 08:22 by ADMIN
To reproduce:
- Drop RadMarkupDialog on the form
- In code set its DefaultFont and show it

WORKAROUND:
Create an instance of RadMarkupDialog prior showing it, not at design time.
Approved
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);
        }
Approved
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);
}
Approved
Last Updated: 11 Sep 2018 11:58 by ADMIN
To reproduce:
radPopupEditor1.PopupForm.VerticalPopupAlignment = VerticalPopupAlignment.TopToBottom;

Workaround:
private void RadPopupEditor1_PopupOpening(object sender, CancelEventArgs e)
{
    var args = e as RadPopupOpeningEventArgs;
    args.CustomLocation = new Point(args.CustomLocation.X, args.CustomLocation.Y - (radPopupEditor1.Height + radPopupEditor1.PopupForm.Height));
}
Approved
Last Updated: 05 Oct 2018 07:28 by ADMIN
To reproduce: please refer to the attached sample project and follow the steps from the provided gif file.

Workaround: use RadTextBoxControl.
Approved
Last Updated: 26 Apr 2019 06:12 by ADMIN

Use the following code snippet:

            this.radMaskedEditBox1.Mask = "99/99/99/99/99/99";
            this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
            this.radMaskedEditBox1.PromptChar = ' ';
            ((StandartMaskTextBoxProvider)this.radMaskedEditBox1.MaskedEditBoxElement.Provider).TryGetStandardProvider().InsertKeyMode = InsertKeyMode.Overwrite;

When the cursor is just before the last "/", if you enter a number, then the cursor does not move after this last "/". Then entering another digit overwrites the last digit typed.

Approved
Last Updated: 20 Nov 2017 15:19 by ADMIN
To reproduce:
 radTimePicker1.Value = DateTime.Now.AddDays(10);
 radTimePicker1.TimePickerElement.MaskedEditBox.MaskType = Telerik.WinControls.UI.MaskType.FreeFormDateTime;

Workaround:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    radTimePicker1.Value = DateTime.Now.AddDays(10);

    var provider = radTimePicker1.TimePickerElement.MaskedEditBox.Provider as FreeFormDateTimeProvider;

    provider.MinDate = DateTime.MinValue;
    provider.MaxDate = DateTime.MaxValue;
}

Approved
Last Updated: 14 Aug 2017 11:57 by ADMIN
Workaround: override the ProcessCmdKey method of the form and activate the desired control:
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData== Keys.Tab)
            {
                this.ActiveControl = this.radPopupEditor2.PopupEditorElement.TextBoxElement.TextBoxItem.HostedControl;
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

IMPORTANT!!! Tab key should navigate to the next control even if the popup is opened.
Approved
Last Updated: 03 Jul 2017 06:50 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Editors
Type: Bug Report
1
To reproduce:
public Form1()
{
    InitializeComponent();

    this.radTextBox1.Text = "abcd";
    this.radTextBox2.Text = "abcd";
    this.radTextBoxControl1.Text = "abcd";
    this.radTextBoxControl2.Text = "abcd";

    this.radTextBox2.Multiline = true;
    this.radTextBoxControl2.Multiline = true;

    this.textBox1.Text= "abcd";
    this.textBox2.Text= "abcd";
    this.textBox2.Multiline = true;
}

Workaround: set the Multiline property to true in the Form.Load event.

Second workaround: this.radTextBox2.TextBoxElement.TextBoxItem.Margin = new Padding(-2, 0, 0, 0);
Approved
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.
Approved
Last Updated: 06 Dec 2017 15:08 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Editors
Type: Bug Report
1
To reproduce: please refer to the attached sample screenshots and project.

Note: this issue is relevant for RadDropDownList as well.

Workaround:             
            this.radDropDownList2.DropDownListElement.TextBox.TextBoxItem.Multiline = true;
            this.radDropDownList2.DropDownListElement.TextBox.TextBoxItem.MinSize  = new Size(30, 15); 
Approved
Last Updated: 22 Feb 2018 15:38 by ADMIN
Using UI for WinForms R3 2017 (version 2017.3.912)

Strange behavior while selecting text with the mouse, while TextAlign is set to Right and there is more text then visible.
To reproduce try selecting all the text in the control from the attached file (once to the left, once to the right).

If the ShowClear button is visible and RihtToLeft is true, it won't select to the left (while there is more text than visible).


RadTextBoxControl radTextBoxControl1 = new Telerik.WinControls.UI.RadTextBoxControl();

this.radTextBoxControl1.Location = new System.Drawing.Point(239, 186);
this.radTextBoxControl1.Name = "radTextBoxControl1";
this.radTextBoxControl1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.radTextBoxControl1.ShowClearButton = true;
this.radTextBoxControl1.Size = new System.Drawing.Size(64, 20);
this.radTextBoxControl1.TabIndex = 6;
this.radTextBoxControl1.Text = "123456789123456789";
this.radTextBoxControl1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
Approved
Last Updated: 21 Feb 2018 13:28 by ADMIN
The suggestion must popup after every word.
There should be an option for positioning the drop down inside the textbox.