You can add the items to the collection after the InitializeComponent() in the constructor of the page. After that you can select the previously chosen element. In order to get it, you can save the SelectedIndex
of the ComboBox on SelectionChanged
event. You need to create a logic in order to connect the SelectedIndex and the index of the row in your table.
The other option is to create a view model for the items of the ComboBox and each object to have 2 properties: the name and the code, which will match the table. After that put the items in a ObservableCollection and bind it to the ItemsSource of the ComboBox. You can find an example of this in this help article
. In that way you can record the exact code of the items and match them in the data base.
Hope this information helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>