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

Clear Empty Message Does Not Trigger Client Events

1 Answer 16 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 12 Mar 2010, 05:36 AM
I have 2 combobox A and B. Both of them have AllowCustomText = True and EmptyMessage = "Select A" and "Select B" respectively.

After selecting an item in combobox A, any selection in combobox B would be cleared in client side via OnClientSelectedIndexChanging in combobox A.

Then selected value of combobox A would be set up in Context collection of combobox B via OnClientItemsRequesting and then OnItemsRequested server event will retrieve this value and populate the dropdown values of combobox B.

After selecting an item in combobox B, goes back to combobox A, Hightlight the Selected Text, press DELETE and then click on any area outside combobox A. Empty message of "Select A" is now shown. Then click on dropdown arros of combobox B. No values are refresed in items of combobox B.

Further investigation revealed that selected value of combobox A is not cleared during the last step.

Could anyone advise how to achieve such that the selected value of combobox A would be cleared when last step is undertaken.

Thanks

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 18 Mar 2010, 04:22 PM
Hi Raymond,

Thank you for the bug report.

As mentioned in the other ticket you opened on the same subject this is a bug and we will fix it in future versions of RadComboBox.

In the meantime you can handle the Blur event of the the first RCB to work around the bug in this way:

function onBlur(sender) {
    if (!sender.get_text())
        sender.clearSelection();
}

All the best,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Raymond
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or