AutoCompleteBox in prism region loosing handlers

2 posts, 0 answers
  1. jen
    jen avatar
    77 posts
    Member since:
    Jun 2009

    Posted 16 Sep 2014 Link to this post

    I have an AutoCompleteBox on a view that is displayed in a prism region. Its SearchText property is bound to a property "NewAction" in my View Model, in good MVVM fashion.
    When this view loads in the region the first time, it behaves correctly. When I activate another view in the region, then re-activate it, the control no longer behaves correctly. Any text entered does not trigger the SearchTextChanged event, nor does the value make it to the "NewAction" property.

    ​ <telerik:RadAutoCompleteBox Grid.Row="1" Grid.Column="3" Margin="3" x:Name="auto_NewActionDesciption" SelectionMode="Single" TextSearchMode="Contains" AutoCompleteMode="Suggest"
    SearchText="{Binding NewAction, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" WatermarkContent="&lt; New Action &gt;"
    ItemsSource="{Binding ActionDescriptions.View}" SearchTextChanged="RadAutoCompleteBox_SearchTextChanged"/>

    I thought maybe the binding was getting removed somehow, so when the view loads I checked the BindingExpression for the SearchTextProperty. It is still there and correct.

    System.Windows.Data.BindingExpression B =auto_NewActionDesciption.GetBindingExpression(Telerik.Windows.Controls.RadAutoCompleteBox.SearchTextProperty);

    I also tried adding another SearchTextChanged event handler to the control when the view loads, but the event still doesn't get thrown when I input some text into the control.

    Can anyone shed any light on what might be happening here?
  2. George
    George avatar
    1332 posts

    Posted 18 Sep 2014 Link to this post


    We test the application with our latest binaries and we can confirm the bug is already fixed. Can you give it a try and let me know if everything is fine on our side? I am glad to assist you further.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top