single quotes in radtextbox

2 posts, 0 answers
  1. Jean-Marc Windholz
    Jean-Marc Windholz avatar
    42 posts
    Member since:
    Sep 2009

    Posted 06 Jun 2011 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 10 Jun 2011 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top