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

Telerik Autocomplete box issue

1 Answer 61 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Gayathri
Top achievements
Rank 1
Gayathri asked on 05 Feb 2013, 06:55 AM
Hi

When we click on Autoocomplete box we are ascertaining the below issue,
i have also glued the code where i am able to find the issue,
Can anyone help me to resolve this issue ?



string

 

 

_modeldesc = ((Telerik.Windows.Controls.RadWatermarkTextBox)(e.OriginalSource)).CurrentText;

 




Regards
Gayathri R

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 05 Feb 2013, 07:29 AM
Hello Gayathri,

Looking at the attached image I believe that the e.OriginalSource, that you are trying to cast is of type ScrollViewer and not a RadWatermarkTextBox. I am not sure which event you try to handle, but it seems that the e.OriginalSource will not work for you to find the textbox portion of the control. I would suggest you to use the RadAutoCompleteBox' SearchText property instead.

All the best,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
AutoCompleteBox
Asked by
Gayathri
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or