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

[Solved] Binding Existing value

1 Answer 63 Views
AutoCompleteBox for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gene
Top achievements
Rank 1
Gene asked on 04 Jul 2013, 09:54 PM
Here is my problem with the AutocompleteBox for Xaml on Windows 8, this control is nice but how do you bind the existing value to the control without asking the user to enter it again.

Let's say the user enters Promet in the autocompletebox, the control looks at the data and loads the list of movies, the user selects Prometheus , then saves the data, comes back to the page , Prometheus should be displayed in the control but it's not, since there is no list to be bounded to it does not show ... how can i solve the problem?  I tried asking the control to load only Prometheus but it shows the list with only one row and the user needs to select it again... 

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 05 Jul 2013, 10:19 AM
Hello Gene,

Thank you for contacting us.

The NavigationCacheMode property of the Page instance is set to Disabled by default, which means that a new instance of the page is created on each visit. You can consider enabling navigation caching if this is the behavior you want.

Alternatively, you can try using a two-way binding for the RadAutoCompleteBox.Text property to a property in your view model and persist that for the next visit to the page.

I hope this helps.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
AutoCompleteBox for XAML
Asked by
Gene
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or