Telerik Autocomplete box issue

2 posts, 0 answers
  1. Gayathri
    Gayathri avatar
    4 posts
    Member since:
    Jan 2013

    Posted 05 Feb 2013 Link to this post


    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 ?




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


    Gayathri R
  2. Ivo
    Ivo avatar
    390 posts

    Posted 05 Feb 2013 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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