Completed
Last Updated: 26 May 2016 13:56 by ADMIN
ADMIN
Stefan
Created on: 23 May 2016 10:01
Category: Editors
Type: Bug Report
0
FIX. RadTextBoxControl - the caret position is not reset when the Text is changed to empty string
To reproduce: Using the below code, type something in the text box and execute the button shortcut => the caret remains where it was

 protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            AddTextBoxControl();

            radButton1.ButtonElement.Shortcuts.Add(new RadShortcut(Keys.Alt, new Keys[] { Keys.R }));
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            radTextBoxControl1.Text = "";
        }

Workaround:
Instead of setting the Text to empty string, use the control Clear method.
0 comments