Changing text on SelectedIndexChanged

4 posts, 0 answers
  1. Nhan Rao
    Nhan Rao avatar
    7 posts
    Member since:
    Sep 2009

    Posted 23 Nov 2009 Link to this post

    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.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 24 Nov 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. PDMI
    PDMI avatar
    1 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    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.
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 23 Sep 2011 Link to this post

    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 >>

Back to Top