This question is locked. New answers and comments are not allowed.
Hi everyone,
I'm working on a project in WinForms using the Telerik library. We previously used the Q2 2009 version of the library. In our project we use a RadComboBox wich is contains a bunch of default answers.But the combo accept custom text and when the user select a default answer, in the SelectedIndexChanged event we add to the text of the combo the selected awser seperated from the original text (saved in the tag of the combo when the dropdown is opened) by a " - ".
Here is the code :
But now with the new version (Q1 2010 SP2) this doesn't work anymore. The text of the combo remains the text of the selected item. How can we do that with the new version ?
[Nean]
I'm working on a project in WinForms using the Telerik library. We previously used the Q2 2009 version of the library. In our project we use a RadComboBox wich is contains a bunch of default answers.But the combo accept custom text and when the user select a default answer, in the SelectedIndexChanged event we add to the text of the combo the selected awser seperated from the original text (saved in the tag of the combo when the dropdown is opened) by a " - ".
Here is the code :
private void rcbElement_SelectedIndexChanged(object sender, EventArgs e) |
{ |
RadComboBoxEditorElement rcbe = (RadComboBoxEditorElement)sender; |
rcbe.Text = (rcbe.Tag.ToString() == "" ? "" : rcbe.Tag + (rcbe.Text == "" ? "" : " - ")) + rcbe.Text; |
rcbe.SelectedText = ""; |
rcbe.Tag = rcbe.Text; |
} |
But now with the new version (Q1 2010 SP2) this doesn't work anymore. The text of the combo remains the text of the selected item. How can we do that with the new version ?
[Nean]