IMPROVE. RadTextBoxControl - add right to left support
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;
Currently, this can be achieve with this code: TextInfo textInfo = new CultureInfo("en-US", false).TextInfo; bool updating = false; void radTextBox1_TextChanging(object sender, TextChangingEventArgs e) { if (!updating) { int pos = radTextBox1.TextBoxElement.TextBoxItem.SelectionStart; updating = true; radTextBox1.Text = textInfo.ToTitleCase(radTextBox1.Text); radTextBox1.TextBoxElement.TextBoxItem.SelectionStart = pos; updating = false; } }
How to reproduce: also check the attached video this.radMaskedEditBox1.MaskType = MaskType.Numeric; Workaround: private void RadMaskedEditBox1_TextChanged(object sender, EventArgs e) { if (this.radMaskedEditBox1.Text == "-0") { if (this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.Length == 2) { //Workaround this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text = this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Text.Remove(1, 1); } } }
RadMaskedEditBox does not support G mask
RadTextBox should indicate ReadOnly state
The workaround in the following MSDN resources results in an incorrect behavior in the header of RadDateTimePicker: https://code.msdn.microsoft.com/Fixing-Persian-Locale-for-6e66e044#content
ADD. RadTextBox - there should be a mode whether the undo should bring back the previous word or to work for each character
Multiply line text is not correct align at the left side when control runs on Win xp. Steps to reproduce: this.radTextBoxControl1.Text = "This\nis a\ntest";
Currently there can only be one delimiter in the autocomplete box. Different users might be accustomed to using different delimiters, even one user using several delimiters.
Please refer to the attached sample project and try to open the form's designer. If you comment [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] for the EditarTextBox property (typeof(RadTextBox)), clean and rebuild, the designer is opened as expected. Workaround: use RadTextBoxControl.
Please refer to the attached sample project and attached gif file which illustrates the desired behavior when RadForm1 is run. If you run RadForm2 which uses RadDropDownList, the binding doesn't work as expected. Workaround: this.radDropDownList1.SelectedIndexChanged += RadDropDownList1_SelectedIndexChanged; this.radDropDownList1.DisplayMember = "Naziv"; this.radDropDownList1.ValueMember = "Id"; this.radDropDownList1.DataSource = bs; private void RadDropDownList1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e) { if (e.Position > -1) { Roditelj parent = this.radDropDownList1.SelectedItem.DataBoundItem as Roditelj; this.radDropDownList2.DataSource = null; this.radDropDownList2.DisplayMember = "Naziv"; this.radDropDownList2.ValueMember = "Id"; this.radDropDownList2.DataSource = parent.Djeca; } }
To reproduce: - Use the following format: radDateTimePicker1.Format = DateTimePickerFormat.Custom; radDateTimePicker1.CustomFormat = "MM/dd/yyyy"; - Clear the date and try to enter 01/01/2017 (see attched video) Workaround: radDateTimePicker1.NullDate = DateTime.MinValue.AddYears(1);
To reproduce: this.radDateTimePicker1.ThemeName = "TelerikMetroTouch"; var calendar1 = (radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar); calendar1.ShowTimePicker = true; Workaround: calendar1.Calendar.Width = 250; calendar1.DropDownMinSize = new System.Drawing.Size(500, 250);
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.
One should be able to change the color of the RadTextBox text when it is disabled.
The textbox should increase its size when entering text.
ADD. RadTextBox - add redo functionality
Please refer to the attached screenshot. Workaround: Me.RadDateTimePicker1.DateTimePickerElement.TextBoxElement.MaxSize = New Size(0, 20)
Currently all spell checker dialogs are not accessible for customization.