3 Answers, 1 is accepted
0
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:
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
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
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
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