This behavior comes from the nested MaskedEditBox. RadDateTimePicker behaves the same way - this is core logic and should be the same.
SpellCheckAllAtOnce form should fill the "Change To:" field with the selected word in the suggestions box
Selection in RadDateTimePicker when the culture is ar-SA is not correct. Further, changing the selected date using the arrow keys does not set the right value.
1. Create new project and add RadTextBox inside a user control. 2. Set its Dock property to Left. 3. Add custom button items in its layout by using RadButtonElement and StackLayoutElement. 4. Set a default value to the text box when handling the form Load event. 5. Run the project.
1. Create a new application with RadMarkupDialog. 2. Use the ILMerge tool to merge all assemblies in one executable file. 3. Run that file. You will see that all images are missing.
1. Create a new project and add RadBrowseEditor. 2. Run the project. 3. Select some folder in the editor. 4. Try to click with the mouse somewhere inside the editor.
first digit entered 3 would display 0.03 second digit 5 entered would display 0.35 third digit 0 entered would display 3.50
To reproduce: Add a RadSpellChecker and a RichTextBox, set the spell checker to check the RichTextBox on some button click. Set the main form's TopMost property to true. Start the form, you will notice that sometimes the dialog for spellchecking and the complete messagebox show behind the main form. Workaround: public class MyRadSpellChecker : RadSpellChecker { private FormSettings formSettingsForCurrentSpellCheckIteration = new FormSettings(); public MyRadSpellChecker() { } protected override void CheckAllAtOnce(IControlSpellChecker spellChecker) { Form spellCheckerParentForm = this.GetSpellCheckerParentForm(spellChecker); RadDocument editingElementContentToRadDocument = spellChecker.GetContentAsDocument(); editingElementContentToRadDocument.Measure(RadDocument.MAX_DOCUMENT_SIZE); IControlSpellChecker richTextBoxSpellChecker = this.GetControlSpellChecker(typeof(RadRichTextBox)); SpellCheckAllAtOnceForm checkAllAtOnceWindow = new SpellCheckAllAtOnceForm(editingElementContentToRadDocument, richTextBoxSpellChecker, spellChecker); if (!checkAllAtOnceWindow.HasErrors) { this.ShowSpellCheckingCompleteDialog(spellCheckerParentForm); return; } this.CopyFormSettings(this.FormSettings, checkAllAtOnceWindow); SpellingFormShowingEventArgs args = new SpellingFormShowingEventArgs(checkAllAtOnceWindow, spellChecker); this.OnSpellingFormShowing(args); if (args.Cancel) { return; } Form form = args.SpellingForm; form.ShowDialog(spellCheckerParentForm); } private void CopyFormSettings(FormSettings from, RadForm to) { to.Location = from.Location; to.StartPosition = from.StartPosition; ThemeResolutionService.ApplyThemeToControlTree(to, from.ThemeName); } private void ShowSpellCheckingCompleteDialog(Form parentForm = null) { if (this.EnableCompleteMessageBox) { string themeName = RadMessageBox.ThemeName; RadMessageBox.ThemeName = this.ThemeName; string title = RadSpellCheckerLocalizationProvider.CurrentProvider.GetLocalizedString(RadSpellCheckerStringId.Title); string complete = RadSpellCheckerLocalizationProvider.CurrentProvider.GetLocalizedString(RadSpellCheckerStringId.Complete); RadMessageBox.Show(parentForm, complete, title, MessageBoxButtons.OK); RadMessageBox.ThemeName = themeName; } } protected override void CheckWordByWord(IControlSpellChecker spellChecker) { this.CopyWindowSettings(this.FormSettings, this.formSettingsForCurrentSpellCheckIteration); DialogResult result = DialogResult.None; do { result = this.ShowWindowForNextError(spellChecker); } while (result != DialogResult.None && result == DialogResult.OK); } private void CopyWindowSettings(FormSettings from, FormSettings to) { to.Location = from.Location; to.StartPosition = from.StartPosition; to.ThemeName = from.ThemeName; } private DialogResult ShowWindowForNextError(IControlSpellChecker spellChecker) { Form spellCheckerParentForm = this.GetSpellCheckerParentForm(spellChecker); spellChecker.ResetFields(); IWordInfo incorrectWordInfo = spellChecker.MoveToNextError(); if (incorrectWordInfo == null) { this.ShowSpellCheckingCompleteDialog(spellCheckerParentForm); return DialogResult.None; } RadForm checkWordByWordWindow = new SpellCheckWordByWordForm(incorrectWordInfo.Word, spellChecker); this.CopyFormSettings(this.formSettingsForCurrentSpellCheckIteration, checkWordByWordWindow); SpellingFormShowingEventArgs args = new SpellingFormShowingEventArgs(checkWordByWordWindow, spellChecker); this.OnSpellingFormShowing(args); if (args.Cancel) { return DialogResult.None; } checkWordByWordWindow = args.SpellingForm; spellChecker.CurrentControl.Focus(); return checkWordByWordWindow.ShowDialog(spellCheckerParentForm); } private Form GetSpellCheckerParentForm(IControlSpellChecker spellChecker) { if (spellChecker != null && spellChecker.CurrentControl != null) { return spellChecker.CurrentControl.FindForm(); } return null; } }
To reproduce: Create two forms - form 1 has a button which creates a new form 2 Form 2 has a button and a RichTextBox. The button should create a spellchecker. Write something into the richtextbox and click the button. Close the spellchecking form and form 2. Repeat a few times, memory usage should increase.
To reproduce: Add a TableLayout and in the cells add a RadtextBox with its multiline property set to true. Resize the form until the textboxes and unclickable and no scrollbars are shown. This behavior does not always occur. Workaround: Use a custom RadTextBox class: public class MyTextBox : RadTextBox { protected override void InitializeTextElement() { this.GetType().BaseType.GetField("textBoxElement", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(this, new MyTextBoxElement()); this.TextBoxElement.StretchVertically = true; this.TextBoxElement.ShowBorder = true; } } public class MyTextBoxElement : RadTextBoxElement { protected override SizeF MeasureOverride(SizeF availableSize) { availableSize.Width -= BorderThickness.Size.Width; availableSize.Height -= BorderThickness.Size.Height; SizeF desiredSize = this.MeasureChildren(availableSize); return desiredSize; } protected override Type ThemeEffectiveType { get { return typeof(RadTextBoxElement); } } }
FIX. RadDateTimePicker throws an exeption, when trying to set the value with ShowUpDown true and previous value = null
FIX. RadSpinEditor - TextChanged of the control is not fired. Should fire in the same cases as the TextChanged event of the element.
FIX. RadSpinEditor's Text property should act the same way as the Text property of the element
FIX. RadMaskedEditBox- black border appears on disabled control with Windows7 theme.
The RadTextBox control should rise the PreviewKeyDown event.
SetToNullValue() does not show NullText when ShowUpDown is true
To reproduce: AddHandler RadAutoCompleteBox1.Validating, Sub() 'add new item to list Dim txt As String = RadAutoCompleteBox1.Text Dim add As String = String.Empty If Not String.IsNullOrEmpty(txt) Then If Not txt.EndsWith(";") Then 'new item! If txt.Contains(";") Then _addWg = txt.Split(";").Last Else _addWg = txt End If RadAutoCompleteBox1.Text = RadAutoCompleteBox1.Text & ";" End If End If End Sub '--------------- 'We update the datasource when we lost focus.... AddHandler RadAutoCompleteBox1.LostFocus, Sub() If Not String.IsNullOrEmpty(_addWg) AndAlso Not wgAcSource.Contains(_addWg) Then wgAcSource.Add(_addWg) RadAutoCompleteBox1.AutoCompleteDataSource = Nothing RadAutoCompleteBox1.AutoCompleteDataSource = wgAcSource _addWg = String.Empty End If End Sub Workaround: Add the item and reset the data source in the KeyDown event for example when the user presses Enter.
One should be able to disable the saving of the custom colors. In addition one should be able to override the color dialog FormClosing method.
1. Add RadTextBoxControl and RadSpellChecker 2. Set the AutoSpellCheckControl property to radTextBoxControl1 3. Type text "(a) is (b) is (c) (d)" and you will see that the letters in parentheses are underline like incorrect.
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;