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

Binding to SearchText has no effect

1 Answer 64 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
cocowalla
Top achievements
Rank 1
cocowalla asked on 22 Aug 2013, 08:44 AM
Binding a view model property to the SearchText property of a RadAutoCompleteBox seems to have no effect (when typing in the RadAutoCompleteBox, the view model property remains null).

Is this by design? Is there a workaround?

1 Answer, 1 is accepted

Sort by
0
cocowalla
Top achievements
Rank 1
answered on 22 Aug 2013, 09:08 AM
OK, it seems to work if I explicitly set Mode to TwoWay and UpdateSourceTrigger to PropertyChanged on the binding like:

{Binding SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged
Tags
AutoCompleteBox
Asked by
cocowalla
Top achievements
Rank 1
Answers by
cocowalla
Top achievements
Rank 1
Share this question
or