RadComboBox and Command Binding

5 posts, 0 answers
  1. Gautam
    Gautam avatar
    10 posts
    Member since:
    Dec 2011

    Posted 19 Jan 2012 Link to this post

    What is the use of Command when using RadComboBox, when it does not seem to fire when the selection inside the RadComboBox changes?

    When I hook the command, it seems to fire once, when the command is initialized, then it never fires. 

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 20 Jan 2012 Link to this post

    Hello,

    The command seems to execute every time the selection is changed, please check the attached application. Am I missing something?

    Greetings,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Gautam
    Gautam avatar
    10 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

    This seems to work. Thanks.

    But on a similar note, I fail to understand the following behavior

    1. I have selected a selection in the radcombobox
    2. When I change the selection, the command/selecteditem seem to fire (which is fine).
    3. But, when I re-select the same item from the drop down box, none of the above seem to fire. I want them to fire even if a user clicks on the combobox and selects the same item (which is the current selection) from the list.

  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 20 Jan 2012 Link to this post

    When you click on the selected item the selection is not changed (because it is already selected), hence the command is not executed. I am afraid this behavior cannot be changed.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Gautam
    Gautam avatar
    10 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

    Any input on how such kind of behavior can be achieved?

    Much appreciated. 
Back to Top
UI for WPF is Visual Studio 2017 Ready