To reproduce: radDateTimePicker1.ShowUpDown = true; WORKAROUND: radDateTimePicker1.ShowUpDown = true; radDateTimePicker1.Enabled = false; radDateTimePicker1.Enabled = true;
To reproduce: radTimePicker1.Enabled = false; radTimePicker1.Enabled = true; WORKAROUND: void radTimePicker1_EnabledChanged(object sender, EventArgs e) { if (radTimePicker1.Enabled) { radTimePicker1.TimePickerElement.ForeColor = Color.Black; } }
Fix suggest behavior in RadAutoCompleteBox to support spaces in the written text. WORKAROUND: public class MyAutoCompleteBox : RadAutoCompleteBox { public MyAutoCompleteBox() { this.ThemeClassName = typeof(RadAutoCompleteBox).FullName; } protected override RadTextBoxControlElement CreateTextBoxElement() { return new MyAutoCompleteBoxElement(); } } public class MyAutoCompleteBoxElement : RadAutoCompleteBoxElement { protected override Type ThemeEffectiveType { get { return typeof(RadAutoCompleteBoxElement); } } public override void CloseDropDown(RadPopupCloseReason reason) { if (reason == RadPopupCloseReason.CloseCalled) { if (this.ListElement.SuggestedText != null && this.ListElement.PatternText != null && this.ListElement.IsSuggestionMatched) { return; } } base.CloseDropDown(reason); } protected override RadTextBoxListElement CreateListElement() { return new RadTextBoxListElement(); } }
steps to reproduce: - Click on the red cross to delete the "radAutoCompleteBox1" entry of the first RadAutoCompleteBox. The blinking cursor is positioned at the beginning of the box. - Click on the second RadAutoCompleteBox. The blinking cursor is positioned in the second box, but the blinking cursor of the first RadAutoCompleteBox is still present.
Drop RadTextBox on the form - there is a default text which equals to the Name of the control.
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.
IF you canceling the textChanging event of the RadTextBox (e.Cancel = true) the cursor back at the start of the text. Work around: 1. Create custom text box element that inherited the RadTextBoxElement. For example: public class MyTextBoxElement : RadTextBoxElement { private bool isValueChanging = false; private int selectionStart = -1; public MyTextBoxElement() { this.TextBoxItem.HostedControl.TextChanged += new EventHandler(HostedControl_TextChanged); } protected override void OnTextChanging(Telerik.WinControls.TextChangingEventArgs e) { base.OnTextChanging(e); Regex regEx = new Regex(@"[\s]{1,}"); if (regEx.IsMatch(e.NewValue)) { isValueChanging = true; this.selectionStart = base.TextBoxItem.SelectionStart - 1; } } private void HostedControl_TextChanged(object sender, EventArgs e) { if (this.isValueChanging && selectionStart >= 0) { this.isValueChanging = false; this.TextBoxItem.SelectionStart = this.selectionStart; } } protected override Type ThemeEffectiveType { get { return typeof(RadTextBoxElement); } } } 2. Create custom Text box that inherited the RadTextBox: For Example: public class MyTextBox : RadTextBox { private static readonly FieldInfo TextBoxElementFieldInfo = typeof(RadTextBox).GetField("textBoxElement", BindingFlags.NonPublic | BindingFlags.Instance); public MyTextBox() { this.ThemeClassName = typeof(RadTextBox).FullName; } protected RadTextBoxElement TextBox { get { return (RadTextBoxElement)TextBoxElementFieldInfo.GetValue(this); } set { TextBoxElementFieldInfo.SetValue(this, value); } } protected override void InitializeTextElement() { this.TextBox = new MyTextBoxElement(); this.TextBox.StretchVertically = true; this.TextBox.ShowBorder = true; } } 3. Use your custom Text box instead the default RadTextBox. 4. Subscribe to text Changing event of the custom text box and add the following code snippet: Regex regEx = new Regex(@"[\s]{1,}"); if (regEx.IsMatch(e.NewValue)) { e.Cancel = true; }
To reproduce: - set the Mask to P2 - set the MaskType to Numeric - set the control value to 0.024 The the control displays "2.4" instead of "2.4 %" WORKAROUND: Private Sub RadMaskedEditBox1_ValueChanged(sender As Object, e As EventArgs) Dim control As RadMaskedEditBox = DirectCast(sender, RadMaskedEditBox) RemoveHandler control.ValueChanged, AddressOf RadMaskedEditBox1_ValueChanged control.MaskedEditBoxElement.TextBoxItem.Text = control.MaskedEditBoxElement.Provider.ToString(False, True) AddHandler control.ValueChanged, AddressOf RadMaskedEditBox1_ValueChanged End Sub
To reproduce: - set the Mask to N2 - set the MaskType to Numeric - set the control value to 4.456789 The the control displays 4.456789 instead of 4.46 WORKAROUND: Private Sub RadMaskedEditBox1_ValueChanged(sender As Object, e As EventArgs) Dim control As RadMaskedEditBox = DirectCast(sender, RadMaskedEditBox) RemoveHandler control.ValueChanged, AddressOf RadMaskedEditBox1_ValueChanged control.MaskedEditBoxElement.TextBoxItem.Text = control.MaskedEditBoxElement.Provider.ToString(False, True) AddHandler control.ValueChanged, AddressOf RadMaskedEditBox1_ValueChanged End Sub
Add PasswordChar property.
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.
Setting the ActiveMode property does not change the initially selected tab of the RadColorDialog.
RadColorDialog ignores some of the values provided in the overridden GetLocalizedString method. These are for example the tabs of the RadPageView.
When the Office2007Black theme is used, the items in the dialog's page view are not visible. Workaround: set the form's BackColor: ((RadColorDialogForm)radColorDialog1.ColorDialogForm).BackColor = Color.FromArgb(103, 103, 103);
RadAutoCompleteBox - Items collection ordered by input, not alphabetically
1. Create a new project and add RadTextBoxControl. 2. Set the Text to a string which is 6000 characters long. 3. Run the project.
ADD. RadBrowseEditor - add FileSaveDialog support
To reproduce: Add a grid with a DateTime column and change its editor to GridTimePickerEditor Run the project and on a row with no value, open the editor, press Up arrow key, change to AM and then change the hour to 12 Open the popup and click the left key to change the AM/PM Work around: void radGridView1_EditorRequired(object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e) { if (e.EditorType == typeof(RadDateTimeEditor)) { if (radGridView1.CurrentColumn.Name == "TimeColumn") { GridTimePickerEditor editor = new GridTimePickerEditor(); e.Editor = editor; RadTimePickerElement element = editor.EditorElement as RadTimePickerElement; element.PopupContentElement.HoursTable.TableHeader.LeftArrow.MouseDown -= new MouseEventHandler(LeftArrow_MouseDown); element.PopupContentElement.HoursTable.TableHeader.LeftArrow.MouseDown += new MouseEventHandler(LeftArrow_MouseDown); } } } void LeftArrow_MouseDown(object sender, MouseEventArgs e) { RadTimePickerElement element = ((GridTimePickerEditor)this.radGridView1.ActiveEditor).EditorElement as RadTimePickerElement; DateTime time = (DateTime)element.Value; element.Value = time.AddYears(-2); }
SpellCheckAllAtOnce form should fill the "Change To:" field with the selected word in the suggestions box
When the culture is set to de-AT (or bg-BG or any other culture that does not support AM PM time format), the user cannot set the hours to be 23 using the keyboard (type 2 and then 3). The value is automatically turned to 11.