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

Changing text on SelectedIndexChanged

3 Answers 149 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Nhan Rao
Top achievements
Rank 1
Nhan Rao asked on 23 Nov 2009, 05:43 PM
I have a multi-column combo box with 2 columns using the drop down list style.  When the user selects something new, I want to combine the text from both columns and display it in the text area.   Is this possible?  Even if I set the Text property of the combo box to something new, it still just shows the text from the first column.  It does seem to work when initializing the control but not when the selected index is changed.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 24 Nov 2009, 12:25 PM
Hi Nhan,

Thanks for writing and for your question.

I have researched the case and it seems that there is an issue in RadMultiColumnComboBox that can prevent you to manually set the text of the control in the SelectedIndexChanged event.

I would like to inform you that we managed to provide a fix for this issue which will be available in the upcoming Q3 2009 SP1 release which is scheduled for the end of this month.

You can check our website on a regular basis or subscribe to our blogs for further information.

Thanks for your time.

Regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
PDMI
Top achievements
Rank 1
answered on 20 Sep 2011, 07:56 PM
I am having the same problem this post describes.  We are using telerik version 2010Q3.  The post is dated in 2009 and alludes to a solution in the next release, namely 2009 Q3 SP1.  Can you give me an example of the work around mentioned in this post?  Thank you for your time.
0
Jack
Telerik team
answered on 23 Sep 2011, 02:27 PM
Hello David,

Thank you for writing.

You cannot change the Text property of RadMultiColumnComboBox when handling the SelectedIndexChanged event because it is synchronized internally with the text of the currently selected row. However, you can change this text by handling the TextChanged event directly. Please, consider the code snippet below:

void HostedControl_TextChanged(object sender, EventArgs e)
{
    radMultiColumnComboBox1.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.HostedControl.Text = "my text";
}

I hope this helps. Should you have any other questions, do not hesitate to contact us.
 
All the best,
Jack
the Telerik team

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

Tags
MultiColumn ComboBox
Asked by
Nhan Rao
Top achievements
Rank 1
Answers by
Deyan
Telerik team
PDMI
Top achievements
Rank 1
Jack
Telerik team
Share this question
or