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

AutoCompleteBox in prism region loosing handlers

1 Answer 54 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
jen
Top achievements
Rank 1
jen asked on 16 Sep 2014, 03:43 PM
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?

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 18 Sep 2014, 01:57 PM
Hello,

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.

Regards,
George
Telerik
 
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.
 
Tags
AutoCompleteBox
Asked by
jen
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or