Completed
Last Updated: 15 Oct 2019 10:23 by ADMIN
Release R3 2019 SP1

You need to press Tab twice to move to the next control when in popup editor.

Use attached to reproduce. 

Declined
Last Updated: 06 Aug 2019 13:07 by ADMIN
Use attached to reproduce.

Workaround:
RadTextBox tb = new RadTextBox();

tb.Font = new Font(Font.Name, 12F, FontStyle.Bold);

tb.MaxLength = 200;
tb.Name = "textBox1";
tb.Text = "<Required>";
tb.Location = new Point(49, 7);
var pixels = tb.Font.SizeInPoints * 96 / 72;
tb.TextBoxElement.TextBoxItem.HostedControl.MinimumSize = new Size(0, (int)pixels + 6);

Completed
Last Updated: 15 Jul 2019 08:33 by ADMIN
Release R3 2019 (LIB 2019.2.722)
Created by: Patrick
Comments: 2
Category: Editors
Type: Bug Report
1

Hello,

 

I have noticed a bug in the Autocompletebox.

When the Autocompletebox.Multiline is enabled and setting the text to an item with multiple delimiters where the items are shown on multiple lines (see image).


 

 

When clicking on one of the items in line 2 or 3, the value e.selectionstart returned on the Selectionchanged-event has a wrong value.

On line 2 the e.selectionstart is 1 too much

On line 3 the e.selectionstart is 2 too much


Imports Telerik.WinControls.UI

Public Class RadForm1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim str As String = "Item 1;Item 2;Item 3;Item 4;Item 5;Item 6;Item 7;Item 8;Item 9;Item 10;"
        RadAutoCompleteBox1.Multiline = True
        RadAutoCompleteBox1.Text = str

    End Sub

    Private Sub RadAutoCompleteBox1_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles RadAutoCompleteBox1.SelectionChanged
        Dim SelectedItem As String = RadAutoCompleteBox1.Text.Substring(e.SelectionStart, e.SelectionLength)
        Debug.Print(SelectedItem)
    End Sub
End Class

Approved
Last Updated: 25 Jun 2019 06:48 by ADMIN
Approved
Last Updated: 24 Jun 2019 11:15 by ADMIN

Set the format:

dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "dd/MM/yyyy";

Enter 18 in the yaer part, the year should be set to 2018, the year should be cleared when starting to type as well.

 

Completed
Last Updated: 11 Jun 2019 07:37 by ADMIN
Release R2 2019 SP1
Workaround: use RadTextBoxControl.
Completed
Last Updated: 28 May 2019 15:59 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.603)
Use attached to reproduce.
- Open the dialog multiple times.
Completed
Last Updated: 28 May 2019 15:59 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.603)
To reproduce: add a RadSpellChecker and a RadTextBoxControl and set the RadSpellChecker.AutoSpellCheckControl property to the RadTextBoxControl. When you type "Thisis", the red underline appears, indicating the error. However, if you use the context menu to correct the misspelled word, the red underline remains. Please refer to the attached gif file.

Workaround: stop the default context menu and use the spell checking form instead:

private void radTextBoxControl1_ContextMenuOpening(object sender,TreeBoxContextMenuOpeningEventArgs e)
{
    e.Cancel = true;

    this.radSpellChecker1.Check(this.radTextBoxControl1);
}
Completed
Last Updated: 28 May 2019 13:27 by ADMIN
How to reproduce: 
public Form1()
{
    InitializeComponent();

    this.radMaskedEditBox1.Culture = new CultureInfo("ar-EG");
    this.radMaskedEditBox1.Mask = "c";
    this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Numeric;
}

Workaround: handle the KeyDown event
 private void radMaskedEditBox1_KeyDown(object sender, KeyEventArgs e)
 {
     if (this.radMaskedEditBox1.SelectionLength == this.radMaskedEditBox1.Text.Length)
     {
         this.radMaskedEditBox1.SelectionLength = 0;
     }
 }
Completed
Last Updated: 23 May 2019 13:20 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.603)

Use the following code to setup RadMaskedEditBox. When you start typing you will notice that the ValueChanged event is fired but the ValueChanging is not: 

            this.radMaskedEditBox1.MaskType = MaskType.Standard;
            this.radMaskedEditBox1.Mask = "AAAA";

            this.radMaskedEditBox1.ValueChanged += radMaskedEditBox1_ValueChanged;
            this.radMaskedEditBox1.ValueChanging += radMaskedEditBox1_ValueChanging;

        private void radMaskedEditBox1_ValueChanging(object sender, CancelEventArgs e)
        {
        }

        private void radMaskedEditBox1_ValueChanged(object sender, EventArgs e)
        {
        }

Approved
Last Updated: 26 Apr 2019 06:12 by ADMIN

Use the following code snippet:

            this.radMaskedEditBox1.Mask = "99/99/99/99/99/99";
            this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
            this.radMaskedEditBox1.PromptChar = ' ';
            ((StandartMaskTextBoxProvider)this.radMaskedEditBox1.MaskedEditBoxElement.Provider).TryGetStandardProvider().InsertKeyMode = InsertKeyMode.Overwrite;

When the cursor is just before the last "/", if you enter a number, then the cursor does not move after this last "/". Then entering another digit overwrites the last digit typed.

Completed
Last Updated: 08 Apr 2019 10:04 by ADMIN

Steps:

1) Add a textbox to a form. Set tabindex set to 0.

2) Add a RadMaskedEditBox with tabindex set to 1, and add the code listed below.

        public Form1()
        {
            InitializeComponent();

            this.radMaskedEditBox1.MaskType = MaskType.Standard;
            this.radMaskedEditBox1.Mask = "000000";
            this.radMaskedEditBox1.PromptChar = '#';
            this.radMaskedEditBox1.SelectionStart = 0;
            this.radMaskedEditBox1.SelectionLength = 0;
            
            this.radMaskedEditBox1.Enter += radMaskedEditBox1_Enter;
            this.radMaskedEditBox1.Click += radMaskedEditBox1_Click;
            this.radMaskedEditBox1.MaskedEditBoxElement.TextBoxItem.Click += TextBoxItem_Click;
        }

        void radMaskedEditBox1_Enter(object sender, EventArgs e)
        {
            this.radMaskedEditBox1.SelectionStart = 0;
        }

        void TextBoxItem_Click(object sender, EventArgs e)
        {
            this.radMaskedEditBox1.SelectionStart = 0;
        }

        void radMaskedEditBox1_Click(object sender, EventArgs e)
        {
            
        }


3) Add breakpoints to all 3 RadMaskedEditBox events.

4) Run the app. Press tab key. (Enter event works as expected for the MaskedEditBox class).

5) Close and re-run app. Click the end of the MaskedEditBox. Click event is not invoked by the MaskedEditBox class as expected. 

 

Expected Result:

Since this control really only has 1 primary subcontrol (a fancy textbox). Event subscriptions to Click should subscribe to MaskedEditBoxElement.TextBoxItem.Click the += operator...

Should be fixed for MouseUp/Down and the all the other related key and mouse events.

 

Actual Result:

Subscriptions to Enter work on the MaskedEditBox class, but only subscriptions to MaskedEditBoxElement.TextBoxItem.Click work for Click events. This is highly confusing to the programmer whom is used to subscribing the standard Click event of a given control, and makes for unnecessarily complicated code and knowledge of the internal Element structure to make it work as expect like any other control.

 

Feature request:

It would be nice if there was also a "SelectionStart_MouseClick" property that works similar to SelectionStart but for Click events.

Also a EnableSelectionStart_MouseClick property with a default of false to maintain existing control behavior.

This allows the user to override the default cursor start position for Mouse Clicks. In the case above, the user cannot enter numbers unless they specifically click the start of the Mask; users find that confusing... 

The purpose of the above code is to be able to set the cursor start position "on-click", rather than only on Enter, which the existing SelectionStart property doesn't achieve.

Then we programmers could just set the properties and be done with it, and any subscriptions to the Click event would work as expected ->

public Form1() { InitializeComponent(); var customControl = new RadMaskedEditBoxV2() { MaskType = MaskType.Standard, Mask = "000000", PromptChar = '#', SelectionLength = 0, SelectionStart = 0, EnableSelectionStart_MouseClick = true, SelectionLength_MouseClick = 6, SelectionStart_MouseClick = 0 }; this.Controls.Add(customControl); }

 

 

 

public class RadMaskedEditBoxV2 : Telerik.WinControls.UI.RadMaskedEditBox { public RadMaskedEditBoxV2() : base() { this.EnableSelectionStart_MouseClick = false; this.MaskedEditBoxElement.TextBoxItem.Click += SelectionStartMouseClick_OnClick; } public new event EventHandler Click { add { base.MaskedEditBoxElement.TextBoxItem.Click += value; } remove { base.MaskedEditBoxElement.TextBoxItem.Click -= value; } } protected virtual void SelectionStartMouseClick_OnClick(object sender, EventArgs e) { if (EnableSelectionStart_MouseClick) { this.SelectionStart = SelectionStart_MouseClick; this.SelectionLength = SelectionLength_MouseClick; } } public int SelectionStart_MouseClick { get; set; } public int SelectionLength_MouseClick { get; set; } public bool EnableSelectionStart_MouseClick { get; set; } }

It would also allow the programmer to set the Enter and Click SelectionLengths separately.

 

Regards,

-Shawn.


Completed
Last Updated: 04 Apr 2019 15:54 by Dimitar
Release R2 2019 (LIB 2019.1.408)

Please refer to the following code snippet:

        public Form1()
        {
            InitializeComponent();
             
            this.radMaskedEditBox1.Mask = "n";
            this.radMaskedEditBox1.MaskType = Telerik.WinControls.UI.MaskType.Numeric;   
            this.radMaskedEditBox1.Culture = new CultureInfo("en-CA") { NumberFormat = { NumberDecimalDigits = 0, NumberGroupSeparator = "," } };  
        }

After running the application and try to enter "123". You will notice that you can enter only "1".

Completed
Last Updated: 27 Mar 2019 09:11 by Dimitar

To reproduce:

- Set SutoSize to false and resize the control vertically.

Workaround:

radMaskedEditBox1.MaskedEditBoxElement.StretchVertically = true;

Completed
Last Updated: 14 Feb 2019 16:49 by ADMIN
Created by: Graeme
Comments: 2
Category: Editors
Type: Bug Report
1

Hi,

 

We have an issue with the RadMaskedEditBox control using an f0 mask.

The issue we have is..

 

When entering a number i.e. 123456 followed by pressing the backspace key, results in the number showing as 123450

We would expect this to show as 12345 so assume this is either a bug or requires up to add additional configuration when using f0.

 

I have included an example which demonstrates this

 

Many thanks

Approved
Last Updated: 30 Nov 2018 12:55 by farid
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
Completed
Last Updated: 26 Nov 2018 15:43 by Dimitar
The issue can be reproduced with custom regional settings and the following mask: dd/MM/yyyy

Workaround: if possible please reset the DateTime region settings
Completed
Last Updated: 11 Oct 2018 15:20 by Dimitar
To reproduce: 

            this.radBrowseEditor1.Value = @"D:\Projects";
            this.radBrowseEditor1.ReadOnly = false; 
            this.radBrowseEditor1.BrowseElement.ShowClearButton = true;

You will notice that the clear button is not shown.

Workaround:

            LightVisualButtonElement btn = new LightVisualButtonElement();
            btn.Text = "X";
            btn.Click += btn_Click;
            btn.StretchHorizontally = false;
             
            this.radBrowseEditor1.BrowseElement.BrowseButton.Parent.Children.Add(btn);


        private void btn_Click(object sender, EventArgs e)
        {
            this.radBrowseEditor1.Value = null;
        }
Completed
Last Updated: 11 Oct 2018 14:29 by Dimitar
Set the property to the hosted textbox instead: 
Me.RadSpinEditor1..SpinElement.TextBoxItem.TabStop = False

or create a custom control: 
Public Class MyRadSpinEditor
    Inherits RadSpinEditor

    <DefaultValue(True)>
    Public Overloads Property TabStop As Boolean
        Get

            If Me.SpinElement.TextBoxItem IsNot Nothing Then
                Return Me.SpinElement.TextBoxItem.TabStop
            End If

            Return MyBase.TabStop
        End Get
        Set(ByVal value As Boolean)

            If Me.SpinElement.TextBoxItem IsNot Nothing Then
                MyBase.TabStop = False
                Me.SpinElement.TextBoxItem.TabStop = value
                Return
            End If

            MyBase.TabStop = value
        End Set
    End Property
End Class
Completed
Last Updated: 11 Oct 2018 14:12 by ADMIN
To reproduce: follow the steps illustrated in the gif file.

1. Set Autosize = false.

2. Resize the control by increasing its height.

3. Change Multiline property to true.

4. Change Multiline property to false.

5. Autosize property is reset by doing 4. So set Autosize to false again.

Workaround: Use only the Multiline property.
1 2 3 4 5 6