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

RadTextBoxControl

1 Answer 89 Views
TextBoxControl
This is a migrated thread and some comments may be shown as answers.
Ilya
Top achievements
Rank 1
Ilya asked on 03 Feb 2016, 09:19 AM

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));

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Feb 2016, 09:14 AM
Hello Ilya,

Thank you for writing.

It is a known issue in Q1 2016 version. You can track its progress, subscribe 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

Tags
TextBoxControl
Asked by
Ilya
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or