This is a migrated thread and some comments may be shown as answers.

Problems with Events in RadTextBoxes

3 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 14 Mar 2008, 08:46 AM
Key_Up and Key_Press doesn't works, but Text_Changed works! In old version this events works fine!

3 Answers, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 14 Mar 2008, 12:36 PM
Hello Max,

Thank you for writing.

I reproduced the issue, and I apologize for the inconvenience. It will be addressed in the upcoming Q1 2008 release. For the time being, you can attach to the nested control and still handle the KeyDown and KeyPress events as shown in the code block below:

        public Form1()  
        {  
            InitializeComponent();  
 
            ((RadTextBoxElement)radTextBox1.RootElement.Children[0]).KeyPress += new KeyPressEventHandler(radTextBox1_KeyPress);  
            ((RadTextBoxElement)radTextBox1.RootElement.Children[0]).KeyDown += new KeyEventHandler(radTextBox1_KeyDown);  
 
        }  
 
        void radTextBox1_KeyDown(object sender, KeyEventArgs e)  
        {  
            //your code here  
        }  
 
        void radTextBox1_KeyPress(object sender, KeyPressEventArgs e)  
        {  
            //your code here  
        } 

I hope this helps. Your Telerik points have been updated.

If you have any additional questions, please let me know.

Best wishes,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Max
Top achievements
Rank 1
answered on 15 Mar 2008, 09:59 AM
Same problem with method Focus(). If I use it like tbRadText.Focus() it doesn't works, it works when I use ((RadTextBoxElement)tbRadText.RootElement.Children[0]).Focus();
0
Jordan
Telerik team
answered on 19 Mar 2008, 04:36 PM
Hello Max,

Thank you for your bringing our attention to this issue.

It will be fixed for the Q1 2008 version of RadControls for WinForms (due in mid April).

Best wishes,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Max
Top achievements
Rank 1
Jordan
Telerik team
Share this question
or