Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Help: XamComboEditor doesn't update label?
posted

Hi,

Here's my setup:

  1. XamComboEditor
    • ItemsSource bound to collection of objects (ItemViewModel)
    • DisplayMemberPath set to a label property (ItemViewModel.ItemLabel)
  2. ItemViewModel.ItemLabel
    •  Raises PropertyChanged event when label changes

 

And here's my problem:

  1. When ItemViewModel.ItemLabel changes
    1. If cell is not in edit mode, the displayed value does not update
    2. If cell is in edit mode (ie, when drop down is shown), the updated value is shown
    3. When I exit edit mode, the displayed label reverts to the old value again.
  2. If I use a custom template (ComboBox) for XamComboEditor.Template, it works fine.

Am I missing a setting? I would like to continue using XamComboEditor's default template if possible.

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you where the functionality you want is achieved. Basically after changing the DataSource of the XamComboEditor I iterated trough the Records and make the Cell with the Editor to enter and exit edit mode and I handled the EditModeEnding event, so I can change the Editor’s Value to the updated one.

     

    Feel free to write me if you have further questions.

    xamDataGridComboEditorSource.zip
Children
No Data