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
425
XamComboEditor does not display the selectedItem and dose not syc the dataContext
posted

Hello,

I got a weird problem with using XamComboEditor, but I could not reproduce it in a small solution. 

 

1. When I load the XamComboEditor, I set the selectedItem in back end code. The item is selected, but it is not shown in the textbox. 

Following is when it is loaded, the first 

If I click the dropdown button, it is as following:

2. I am using twoway mode binding. But when I set the selectedItem in the back end code, the dataContext is not updated. And the convertBack function in the converter is never called. But if I change the selectedItem from the browser, the dataContext is updated properly.

 

I tried to repro it in a simple solution, but I could not repro the problem any more. I am sorry if you could not understand the problem without a demo.

 

Anyone has an idea?

Thank you very much

Parents
  • 898
    Offline posted

    I face the same problem, when I set the selectedItem in the back end code. The list entry is selected correctly, but there is no value in the Textbox. I found a small difference

    This is set by code ( xmcce.SelectedIndex = i; ) ...

     

     

    ...

    and this is set by mouseclick.

    It looks like the entry is not marked correctly and thats maybe the reason why the text is not displayed 

     

    Anyone has an idea?

    Thank you very much

Reply Children