Workaround: this.radTextBoxControl1.TextBoxElement.AutoCompleteDropDown.PopupOpening += AutoCompleteDropDown_PopupOpening; private void AutoCompleteDropDown_PopupOpening(object sender, CancelEventArgs args) { RadPopupOpeningEventArgs a = args as RadPopupOpeningEventArgs; if (a != null ) { a.CustomLocation = new Point(a.CustomLocation.X,a.CustomLocation.Y + 20); } }
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);
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.
Workaround: 1) set the CurrencyNegativePattern to 1 Alternatively: 2) check if the the formatted text is surrounded with brackets and if yes set the value of the masked edit box to be negative
One should be able to move to the next/previous word with Ctrl + right/left
To reproduce: this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.MaskType = MaskType.FreeFormDateTime; string format = "MM/dd/yyyy - ddd"; radDateTimePicker1.Format = DateTimePickerFormat.Custom; radDateTimePicker1.CustomFormat = format; - Start the application and click the last part Workaround: class MyFreeFormDateTimeProvider : FreeFormDateTimeProvider { public MyFreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner) : base(mask, culture, owner) { } public override void SelectNextEditableItem() { if (this.SelectedItemIndex +1 == this.List.Count) { return; } base.SelectNextEditableItem(); } }
The following stack trace is only available: <ErrorReport GeneratedDate="2015-10-07 14-10-25 435"><Exception><Type>ArgumentNullException</Type><Message>Value cannot be null. Parameter name: key</Message><Source>mscorlib</Source><TargetSite>Int32 FindEntry(TKey)</TargetSite><StackTrace> at System.Collections.Generic.Dictionary`2.FindEntry(TKey key) at Telerik.WinControls.RichTextBox.Proofing.WordDictionary.GetWordsByMetaphoneKey(String word) at Telerik.WinControls.RichTextBox.Proofing.DocumentSpellChecker.GetSuggestionsForDictionary(IWordDictionary dictionary, Dictionary`2 suggestions, String word) at Telerik.WinControls.RichTextBox.Proofing.DocumentSpellChecker.GetSuggestions(String word, CultureInfo culture) at Telerik.WinControls.UI.SpellCheckWordByWordForm.Initialize(String word, IControlSpellChecker spellCheckingManager) at Telerik.WinControls.UI.SpellCheckWordByWordForm.Telerik.WinControls.RichTextBox.UI.Extensibility.SpellChecking.ISpellCheckForm.Check(RadRichTextBox richTextBox, String word) at Manad.Plus.WindowsUI.Common.Controls.LocalInputBehaviour.ProcessRightMouseButtonDown(MouseEventArgs e) at Telerik.WinControls.RichTextBox.UI.InputBehavior.ProcessMouseDown(MouseEventArgs e) at Telerik.WinControls.RichTextBox.RadRichTextBox.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at Telerik.WinControls.RadControl.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><Data>System.Collections.ListDictionaryInternal</Data><IsTerminating>False</IsTerminating><ExceptionInnerLevel>0</ExceptionInnerLevel>
To reproduce: this.radDateTimePicker1.MaxDate = DateTime.Today; private void radButton1_Click(object sender, EventArgs e) { this.ValidateChildren(); } Workaround: this.radDateTimePicker1.MaxDate = new DateTime( DateTime.Today.Year,DateTime.Today.Month,DateTime.Today.Day, 23,59,59);
To reproduce: public Form1() { InitializeComponent(); this.radAutoCompleteBox1.AppendText("abc;"); } Workaround: append the text in the Form.Load event. private void Form1_Load(object sender, EventArgs e) { this.radAutoCompleteBox1.AppendText("abc;"); }
To reproduce: Place a MaskedTextBox on a Form Set 'MaskType' to 'Numeric' (and in my case I have Mask set to 'D' to allow integer values only) Run the application / open the form - by default the masked textbox has a value of '0' Elsewhere (i.e. notepad) enter and copy a text like 'CT_1234' into the clipboard (please note the starting non-numeric string characters) Go back to the application / form and click into the masked text box Select the pre-existing value (by default the '0' mentioned above or any other value i.e. '11111' .. and by select I mean via mouse or [Shift]+[Arrow Key Left/Right]) Press [Ctrl+V] >> Nothing happens .. what should happen though is that the selected text is overridden with '1234' However, if you have no text selected in the masked text box and place the cursor in it i.e. at the very beginning or end of the existing value, pasting works as expected.. the value '1234' is added (and correctly 'dropping the 'CT_' in front of it).
Workaround: ((StackLayoutElement)this.radBrowseEditor1.BrowseElement.Children[2]).ShouldHandleMouseInput = false; this.radBrowseEditor1.BrowseElement.TextBoxItem.RouteMessages = true;
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); } } }
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;
To reproduce: -Add RadBrowseEditor to a form and set the DialogType to FolderBrowseDialog. -At runtime click the browse button to open the "Browse For Folder" dialog and click the "Make New Folder", type a name for the newly created folder BUT DO NOT PRESS THE ENTER KEY and click the OK button, the Value is set to "New Folder" instead of the name I have typed.
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; } }
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; }
To reproduce: Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-CO"); radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Numeric; radMaskedEditBox1.Mask = "C2"; radMaskedEditBox1.Culture = new System.Globalization.CultureInfo("es-CO"); Click in the masked edit box and press the decimal separator key in the num pad, the cursor is not moved to the desired position. Workaoround: private void RadMaskedEditBox1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyValue == 46) { var textBoxItem = this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem; int indexOfDecimalSeparator = this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.ToLower().IndexOf(','); if (indexOfDecimalSeparator + 1 <= textBoxItem.Text.Length) { textBoxItem.SelectionStart = indexOfDecimalSeparator + 1; } else { textBoxItem.SelectionStart = indexOfDecimalSeparator; } e.Handled = true; } }
To reproduce: this.radDateTimePicker1.Format = DateTimePickerFormat.Short; this.radDateTimePicker1.Value = new DateTime(2016, 5, 12); this.radTextBox1.Text = "9/5/2016"; Second scenario: this.radDateTimePicker1.Format = DateTimePickerFormat.Short; If you copy "1/7/16" and paste it into RadDateTimeicker, the result date will be "1/7/1616". In the previous version, the result was correct 1/7/2016. Copy the value in the text box and paste it in RadDateTimePicker. Workaround: public Form1() { InitializeComponent(); this.radDateTimePicker1.Format = DateTimePickerFormat.Short; this.radDateTimePicker1.Value = new DateTime(2016, 5, 12); this.radTextBox1.Text = "9/5/2016"; this.radDateTimePicker1.ValueChanging += radDateTimePicker1_ValueChanging; this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.TextBoxItem.TextBoxControl.KeyPress += TextBoxControl_KeyPress; } string clipboardData; private void TextBoxControl_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\x16') { if (clipboardData != null) { this.radDateTimePicker1.Text = clipboardData; clipboardData = null; } } } private void radDateTimePicker1_ValueChanging(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e) { if (clipboardData == null) { clipboardData = RadMaskedEditBoxElement.GetClipboardText(); } }