I was trying to empty those textbox text after the event
Thats what i have now:
foreach (Control ctrl in this.Controls)
RadControl rc = ctrl as RadControl;
if (rc is TextBox)
rc.Text = "";
Any help will be appreciated , thanks
1 Answer, 1 is accepted
Dess | Tech Support Engineer, Principal
answered on 01 Sep 2014, 11:27 AM
Thank you for writing.
I am not sure what exactly is the specific case, but following your sample code I noticed that you are trying to cast a RadControl to MS TextBox instance, which is not supposed to succeed. In order to clear the text from all RadTextBox controls, you must cast to RadTextBox:
I hope this information helps. Should you have further questions, I would be glad to help.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.