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

RadComboBox and Command Binding

4 Answers 530 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gautam
Top achievements
Rank 1
Gautam asked on 19 Jan 2012, 06:10 PM
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. 

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 20 Jan 2012, 10:33 AM
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 >>

0
Gautam
Top achievements
Rank 1
answered on 20 Jan 2012, 04:16 PM
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.

0
Valeri Hristov
Telerik team
answered on 20 Jan 2012, 04:33 PM
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 >>

0
Gautam
Top achievements
Rank 1
answered on 20 Jan 2012, 06:01 PM
Any input on how such kind of behavior can be achieved?

Much appreciated. 
Tags
ComboBox
Asked by
Gautam
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Gautam
Top achievements
Rank 1
Share this question
or