Problems With MultiColumn Combobox

2 posts, 0 answers
  1. Safds
    Safds avatar
    1 posts
    Member since:
    Dec 2012

    Posted 01 Dec 2012 Link to this post

    Hi all,

    I have 2 problems with Multi Column Combobox:

    1. There is an event like "SelectionChangeCommitted" (in the normal combobox)? Because I need to fire an event to catch the value selected when the user selects the row on multi column combobox. I can't use SelectedIndexChanged event because my combo have a datasource.

    2. Everytime i click for the first time on combo to open, that don't display correctly as I coded (ex. .AutoSizeDropDownToBestFit = True). It just displays correctly after the first click.

    Sorry for my bad English.
    I'm using Q3 RadControls.
    I'm programming in VB.NET 2010.

    Thanks for supporting me :)
  2. Anton
    Anton avatar
    167 posts

    Posted 05 Dec 2012 Link to this post

    Hi Safds,

    Thank you for writing.

    The RadMultiColumnComboBox is not designed to support "SelectionChangeCommitted" event because everything that user can achieve with this event can be achieved with the SelectedIndexChanged event too.

    You can use SelectedIndexChanged with every type of data source. For example :
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'NwindDataSet.Employees' table. You can move, or remove it, as needed.
        Me.RadMultiColumnComboBox1.AutoSizeDropDownToBestFit = True
    End Sub
    Private Sub RadMultiColumnComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles RadMultiColumnComboBox1.SelectedIndexChanged
        Me.RadLabel1.Text = String.Format("Row changed :{0}", RadMultiColumnComboBox1.EditorControl.Rows(RadMultiColumnComboBox1.SelectedIndex).Cells(2).Value)
    End Sub

    In regards to the second question, I tried to reproduce the described issue locally with version Q3 2012 (2012.3.1017) but everything is working correctly on my end. There is sample demo project attached which I have used in my tests. Could you please take a look at it and modify it on a way to replicate the undesired behavior. This will allow me to investigate it and provide you with further support.

    Thank you in advance for your collaboration. I am looking forward to your reply.

    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. DevCraft banner
Back to Top