If negative numbers are required to be displayed in brackets , e.g. ($1234,56) instead of -$1234,56, you should apply the desired NumberFormatInfo.CurrencyNegativePattern http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.currencynegativepattern(v=vs.110).aspx However, the NumericCharacterTextBoxProvider clears the brackets. CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US"); NumberFormatInfo info = new NumberFormatInfo(); info.CurrencyNegativePattern = 0; info.CurrencySymbol = "$"; culture.NumberFormat = info; this.radMaskedEditBox2.Culture = culture; this.radMaskedEditBox2.MaskType = Telerik.WinControls.UI.MaskType.Numeric; this.radMaskedEditBox2.Mask = "c2"; this.radMaskedEditBox2.Value = -1234.56;
When you set a specific value to the RadTimePicker e.g. new DateTime(2014, 5, 20, 8, 15, 30) and try to change the time via mouse wheel or up/down arrows, the date part is reset to DateTime.Now. Resolution: This broke RadTimePicker functionality because many users have serialized in designer.cs/vb files MinValue and MaxValues and now they date part is take under consideration - this can complete broke its application. Users should keep the date part in separate variable not in TimePicker Value property
To reproduce: - Use the following mask: "+56000000000". - Then type 5 when the whole text is selected. - The caret move to 5 instead of inserting it in the text box like in the default .NET control.
Please refer to the attached picture. Workaround: private void Form1_Load(object sender, EventArgs e) { this.radDateTimePicker1.DateTimePickerElement.CheckBox.CheckMarkPrimitive.CheckElement.Margin = new Padding(-2, -2, 0, 0); }
When the control is disabled it size is changed/
Add a RadAutoCompleteBox with some data source and dock it to top of the Form. Start the Application and stretch the form to the second screen. Autocomplete some items, you will notice that the dropdown will not be shown on the correct position. Also at some point when you are reaching the end of the first screen it will be displayed on the seconds screen. Workaround: (this.AutoCompleteBox.TextBoxElement as RadAutoCompleteBoxElement).AutoCompleteDropDown.PopupOpening += AutoCompleteDropDown_PopupOpening; .... void AutoCompleteDropDown_PopupOpening(object sender, CancelEventArgs args) { var e = args as RadPopupOpeningEventArgs; var popup = sender as RadTextBoxAutoCompleteDropDown; bool isOnTwoScreens = false; if (this.Location.X < Screen.PrimaryScreen.WorkingArea.Width && this.Location.X + this.Width > Screen.PrimaryScreen.WorkingArea.Width) { isOnTwoScreens = true; } if (popup.Width + e.CustomLocation.X > Screen.PrimaryScreen.WorkingArea.Width && isOnTwoScreens) { e.CustomLocation = new Point(e.CustomLocation.X - Screen.PrimaryScreen.WorkingArea.Width, e.CustomLocation.Y); } }
To reproduce: this.radTextBox1.Text = "sample"; this.radTextBox1.TextBoxElement.BackColor = Color.Red; this.radTextBox1.TextBoxElement.UseDefaultDisabledPaint = false; this.radTextBox1.TextBoxElement.Enabled = false; In previous version (e.g. Q1 2014 SP1) the TextBoxElement is not rendered red.
When using CustomDictionary: DocumentSpellChecker checker = this.radRichTextBoxResponses.SpellChecker as DocumentSpellChecker; RadIsolatedStorageCustomDictionary dict = checker.GetCustomDictionary(new CultureInfo("en-US")) as RadIsolatedStorageCustomDictionary; Adding words to the dictionary using the SpellCheck form saves them to the CustomDictionary.txt file created by the isolated storage. However, the words loaded in memory are not being updated. Currently they can be updated by invoking the following method with reflection: dict.GetType().GetMethod("ReadIsolatedStorage", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(dict, null); This method should be made public.
Resolution: TextBlockElement was removed from EditUI elements, since it is a dynamically added.
To reproduce: - Open the RadColorDialogForm (for example to edit color property in RadProeprtyGrid) - Switch to the web tab. -Press the 'a' key several times.
To reproduce use the following configuration for the DateTimePicker: public Form1() { InitializeComponent(); DateTime start = DateTime.Parse("2012/7/1 00:00:00"); this.RadDateTimePicker1.ShowUpDown = true; this.RadDateTimePicker1.Format = DateTimePickerFormat.Custom; this.RadDateTimePicker1.DateTimePickerElement.ShowCurrentTime = false; this.RadDateTimePicker1.MinDate = start; this.RadDateTimePicker1.DateTimePickerElement.CustomFormat = "HH:mm"; this.RadDateTimePicker1.MaxDate = start + TimeSpan.FromMinutes(1440); this.RadDateTimePicker1.Value = start +TimeSpan.FromMinutes(1); this.RadDateTimePicker1.Enter += new EventHandler(this.ConfigStartDelayTime_Enter); } void ConfigStartDelayTime_Enter(object sender, EventArgs e) { RadMaskedEditBoxElement element = this.RadDateTimePicker1.DateTimePickerElement.TextBoxElement.TextBoxItem.Parent as RadMaskedEditBoxElement; MaskDateTimeProvider provider = element.Provider as MaskDateTimeProvider; provider.SelectLastItem(); }
When you drag a RadDateTimePicker from the Toolbox and drop it onto the form, the TabStop property is false by default. If you change it in the Properties grid to true and save the form, try to open the form designer again. As a result the TabStop property is set to false as if no changes have been performed.
To reproduce: - Add default .net RichTextBox to a blank form. - Add a contexmenu strip (again .net one) to the RichTextBox. - Spell check using RadSpellChecker and you will notice that the menu cannot be opened after that. Workaround: void richTextBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { richTextBox1.ContextMenuStrip.Show(this.richTextBox1, e.Location); } }
The default directory is not set correctly when the dialog is SaveFileDialog.
To reproduce: - Add a TextBox and a button to a blank form. - Subscribe to the following Validating event handler: void radTextBox1_Validating(object sender, CancelEventArgs e) { Console.WriteLine("Validating"); e.Cancel = true; }
To reproduce: Add a RadTextBoxControl and start the application. Start the touch keyboard of windows and switch to handwriting mode (by clicking at the bottom right of the keyboard on the little keyboard icon). Type a letter and insert it. You will see that the letter will be inserted twice and the TextChanged event will be raised twice. Workaround: Use RadTextBox instead.