I want to obtain current editing text on a RadAutoCompleteBox.
For example, on the attached screenshot I want to obtain the string "ru".
Is there any property to read that text?
I tried to obtain this text parsing current text, during text change, with following code:
But the problem is that when the textchanged event fires, CaretIndex is not up-to-date: it point to the previous text position.
Thank you for any help.
For example, on the attached screenshot I want to obtain the string "ru".
Is there any property to read that text?
I tried to obtain this text parsing current text, during text change, with following code:
Private Sub RadAutoCompleteBox1_TextChanged(sender As System.Object, e As System.EventArgs) Handles RadAutoCompleteBox1.TextChanged If Me.RadAutoCompleteBox1.CaretIndex > 0 Then ' Obtain current editing text Dim pos As Integer = Math.Max(0, Me.RadAutoCompleteBox1.Text.LastIndexOf(";", Me.RadAutoCompleteBox1.CaretIndex) + 1) Me.TextBox1.Text = Me.RadAutoCompleteBox1.Text.Substring(pos, Me.RadAutoCompleteBox1.CaretIndex - pos).Trim() End IfEnd SubBut the problem is that when the textchanged event fires, CaretIndex is not up-to-date: it point to the previous text position.
Thank you for any help.