RadTextBoxControl

2 posts, 0 answers
  1. Ilya
    Ilya avatar
    7 posts
    Member since:
    Dec 2012

    Posted 03 Feb Link to this post

    Greetings!

     After upgrading to 2016 Q1, we've encountered a bug while appending text to radtextboxcontrol before setting anything to .Text property of it.

     For example:

     // Not working (exception is that 'startPosition' value cannot be null)

    this.radTextBoxControl1.AppendText(String.Format("{0}", formattedString));

     

    // Works

    this.radTextBoxControl1.Text = " "; // maybe some initialisation goes here or smth...
    this.radTextBoxControl1.AppendText(String.Format("{0}", formattedString));

  2. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 04 Feb Link to this post

    Hello Ilya,

    Thank you for writing.

    It is a known issue in Q1 2016 version. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.

    Currently, the possible solution that I can suggest is to append the text in the Form.Load event.
    private void Form1_Load(object sender, EventArgs e)
    {
       this.radTextBoxControl1.AppendText("abc;");
    }

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top