Thank you for contacting us.
The default behavior of the RadMultiColumnComboBox is to display the text of the DisplayMember column for the current selection in the control. When you bind the control to a data source, the selection in the grid inside the combo box is changed and the control automatically reflects this in its text box part.
There is a way, however, to prevent this from happening. Take a look at the following code snippet:
sender, Telerik.WinControls.UI.CurrentRowChangingEventArgs e)
sender, EventArgs e)
// TODO: This line of code loads data into the 'nORTHWINDDataSet.Customers' table. You can move, or remove it, as needed.
As you can see, I have defined a boolean variable named 'loading' which I set to true
before filling the table adapter used to bind the grid, and afterwards set to false.
I also use the CurrentRowChanging
event of the Grid View
inside the multi column combo box. In the handler of this event, I assign the value of the loading
variable to the Cancel
property of the Event Args object. Since the loading
variable will have its value set to true
only when you bind the control, it will always prevent the current row from changing and thus updating the text box part of the control in this case.
I hope this is helpful. You can write back if you need further assistance on this case.
All the best,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items.