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

Problems With MultiColumn Combobox

1 Answer 257 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 02 Dec 2012, 04:46 AM
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 :)

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 05 Dec 2012, 04:13 PM
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.EmployeesTableAdapter.Fill(Me.NwindDataSet.Employees)
    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.

Regards,
Anton
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
MultiColumn ComboBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or