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

single quotes in radtextbox

1 Answer 95 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Jean-Marc Windholz
Top achievements
Rank 1
Jean-Marc Windholz asked on 06 Jun 2011, 06:30 PM
Hi,
I have a problem in my application: I have a radtextbox multiline (not ReadOnly) where some text is loaded; this text contains some words within single quotes (').
When I load the whole text of my application in this textbox, the text is correctly visualized, but if I try to modify the text, the control update the content deleting completing the words within quotes and it performs actions not requested.

I think this is due to the texts within quotes.
 Is there a way to avoid this behaviour and to manage the text and the words within the quotes as pure text, avoiding the radtextbox text/character events?
I also need to manage text read from  an xml document with a xmlnode object and copied to a string: the text contains words within quotes as before.
The text of the xml document is correctly read in the xmlnode object, but the string variable doen' t store the part of text after the first single quotes character and the character itself.
Is a different object more suitable for my purpose? In my application I must use a string variable to store the xml text.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 10 Jun 2011, 10:41 AM
Hello Jean-Marc Windholz,

Thank you for contacting us. Regarding your issues:

You cannot disable the TextChanged event in RadTextBox. However, I am not completely sure that I understand your case. Please, elaborate a bit more and describe in detail what exactly you want to achieve. Sending us your application will help us to address this question quickly and provide you with accurate support.

As to your second question, I am also not sure that I understand the scenario. You can read the xml in a string by using the StreamReader.ReadToEnd method. Please consider the following sample:
StreamReader reader = new StreamReader(@"c:\test.xml");
string xmlString = reader.ReadToEnd();

I hope this helps.

Regards,
Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
TextBox
Asked by
Jean-Marc Windholz
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or