FIX. RadDateTimePicker - setting the TextBoxItem.ReadOnly does not make the editable area read only Note: Implemented RadDateTimePicker ReadOnly property
To reproduce: Add a radspellchecker and let it check a radrichtextbox. Check an incorrect word and click ignore all. You will see that the dialog shows up again. Workaround: public class MySpellCheckWordByWordForm : SpellCheckWordByWordForm {
To reproduce: Add RadAutoCompleteTextBox, add a AutoCompleteDataSource, complete a word, click the close button of the word, try to type. Workaround: void RadForm1_Load(object sender, EventArgs e) { RemoveFocus(); } void radAutoCompleteBox1_TextChanged(object sender, EventArgs e) { RemoveFocus(); } private void RemoveFocus() { foreach (var item in this.radAutoCompleteBox1.TextBoxElement.ViewElement.Children) { foreach (var btn in item.Children) { var radButtonElement = btn as RadButtonElement; if (radButtonElement != null) { radButtonElement.CanFocus = false; } } } }
According to MSDN controls should not change the focus when handling the Enter event
1. Create a new project and add RadTextBoxControl. 2. Set the Text to a string which is 6000 characters long. 3. Run the project.
Drop RadTextBox on the form - there is a default text which equals to the Name of the control.
Add IME support to RadTextBoxControl and RadAutoCompleteBox.
Allow the RadDateTimePicker editor of RadGridView to allow replacement of the months' popup. Resolution: This behavior can be achieved when set the HeaderNavigationMode property to Zoom of RadCalendar. The feature is introduced in Q2 2014. For example: void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { RadDateTimeEditor dtEditor = e.ActiveEditor as RadDateTimeEditor; if (dtEditor != null) { RadDateTimeEditorElement element = (RadDateTimeEditorElement)dtEditor.EditorElement; element.Calendar.HeaderNavigationMode = HeaderNavigationMode.Zoom; } }
Description: RadMaskedEditBox (with MaskType=Numeric and Mask = "c") is bound to a property of type decimal. If you type in 15 it goes into the maskedEditbox as 51. Reproduce: -add a BindingSource (DataSource is set to some data table: for example "Products") -add a BindingNavigator (Binding Source is set to the previously added bindingNavigator1) -add a RadMaskedEditBox (with MaskType=Numeric and Mask = "c") with DataBindings: Value => bindingSource1 - UnitPrice -add a new record using the yellow plus sign button in the navigator; get to the price field and just start typing your number: if you type in 15, it goes into the RadMaskedEditBox as 51. Workaround: Bind to Text instead of binding to Value of the RadMaskedEditBox this.radMaskedEditBox1.DataBindings.Add(new Binding("Text", bindingSource1, "UnitPrice", true)); Resolution: RadMaskedEditBox with currency mask does not support null values. Default value must be 0 instead null. Please use the following code snippet: this.mePrice.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bindingSource1, "Price", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged, 0, "C2"));
To reproduce: -add a GridViewDateTimeColumn to a RadGridView. -try to set RadDateTimeEditor.MaxValue in CellEditorInitialized event to 31/12/9999. As a result ArgumentOutOfRangeException("MaxDate cannot be higher than the max date") is thrown
To reproduce: - add a RadMaskedEditBox with MaskType = MaskType.Standard - input some numbers to fill all the expected digits - select the content in the RadMaskedEditBox and press Enter key. As a result the last number is removed Workaround: private void radMaskedEditBox1_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = e.KeyChar == (char)Keys.Return; }
To reproduce: -add RadDateTimePicker and apply Windows7 theme -enable calendar footer -when opening the drop down calendar, the date part in the footer is not displayed correctly Workaround: RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar; RadCalendar calendar = calendarBehavior.Calendar as RadCalendar; calendar.ShowFooter = true; calendarBehavior.PopupControl.PopupOpening += PopupControl_PopupOpening; private void PopupControl_PopupOpening(object sender, CancelEventArgs args) { RadDateTimePickerDropDown popup = sender as RadDateTimePickerDropDown; if (popup != null) { popup.Height = 250; popup.Width = 280; } }
To reproduce: -add a RadTimePicker; -change its culture: this.radTimePicker1.Culture = new System.Globalization.CultureInfo("en-GB"); Workaround: public Form1() { InitializeComponent(); this.radTimePicker1.Culture = new System.Globalization.CultureInfo("en-GB"); this.radTimePicker1.TimePickerElement.PopupForm.Height =350; }
When you inherit from RadTextBox and override the OnKeyPress or OnKeyDown, those events are not fired.
FIX. RadMaskedEditBox - the minus sign is stripped our with ExcludePromptAndLiterals and IncludePrompt formats with currency mask, while it should not.
FIX. RadMarkUpEditor does not keep the formatting when IE9 is installed - opening the dialog, formatting the text and switching to html view removes all formatting.
When: RadDateTimePicker1.Format = DateTimePickerFormat.Custom RadDateTimePicker1.CustomFormat = "hh:mm tt" and you delete the value (with delete key), then you can not set the time back to 12:00 AM by using arrow keys.
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.
To reproduce: radDateTimePicker1.MinDate = new DateTime(2013, 9, 1); radDateTimePicker1.MaxDate = new DateTime(2013, 9, 15); radDateTimePicker1.NullDate = new DateTime(2013, 9, 1); radDateTimePicker1.NullText = "text"; Start the app and set the year to "1111", then click some button to cause the date time picker to lose focus. At this point, print the control Text and Value. While the text is correct, the value shows with year "1111" and is not validated by the MinDate 2013/9/1 Workaround - work with null and NullableValue instead of NullDate and a specific date, or use the following class class MyRadDateTimePicker : RadDateTimePicker { public override DateTime Value { get { DateTime? date = this.DateTimePickerElement.Value; if (date.HasValue) { if (date < this.MinDate) { return this.MinDate; } if (date > this.MaxDate) { return this.MaxDate; } return date.Value; } return this.MinDate; } set { base.Value = value; } }
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