Hi team,
Please refer to the attached project for demonstration. To reproduce the crash:
1. Add a PageView control with two pages
2. Place the RadTextBox control in the second page (but launch the program in the first one)
3. Set the RadTextBox.ShowClearButton to True
4. Programmically set RadTextBox.Text = Nothing when the TextBox is not in the current page (won't crash if .Text="" or something else)
5. Switch to the page containing the TextBox -> crash.
Hello Yusi,
The provided information and project are greatly appreciated. I confirm it is an issue. Here is the feedback item for your reference. I have also updated your Telerik Points.
To work around this I can suggest you to select each page programmatically in the Load event of the form оr just set the RadTextBox1.Text property to String.Empty instead of Nothing. Please refer to the following code snippet:
Private Sub RadButton2_Click(sender As Object, e As EventArgs) Handles RadButton2.Click
RadPageView1.SelectedPage = RadPageViewPage2
RadTextBox1.Text = String.Empty
End Sub
'or
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.RadPageView1.SelectedPage = RadPageViewPage2
Me.RadPageView1.SelectedPage = RadPageViewPage1
End Sub
I hope this helps. If you have any other questions do not hesitate to contact us.
Regards,
Nadya
Progress Telerik