Hi,
I'm using the MultiColumnComboBox control and I have noticed that even though user Input hasn't been processed the control selects whatever value is in the first row on its own by default
What is the cause of this? I have an app to ship in the coming days and this is causing all my productivity to drop
Please assist
Thank you
This is all the relevant code
ItemNameMultiColumnComboBox.DataSource = new aliasNameInfoCollection().AliasNameListDetails; |
private void ItemNameMultiColumnComboBox_TextChanged(object sender, EventArgs e) |
EDIT: BEFORE IT ADDS THE FIRST ENTRY IT ALSO ADDS THE ValueMember or DisplayMember to the textbox in this case "Name"
I would appreciate a reply because I have an app to ship
Hi Ammar,
If you set the
SelectedItem property to null after the DisplayMember property, you can achieve
your requirement. Please refer to the below code for your reference.
Code:
this.multiColumnComboBox1.DisplayMember = "Name";
this.multiColumnComboBox1.SelectedItem =
null;
Output image:
Please let us know if you need anu further assistance.
Regards,
Mahalakshmi sugumar
First of all Thank you so much for helping out with the previous issue
Secondly,
I was wondering why does the MultiColumn ComboBox's SelectedValue_Changed event is fired whenever I change the datasource? This is an undesirable situation and messes with the flow of the program please guide me on how to negate this
EDIT:
Another question
Why doesn't the MultiColumn ComboBox accept empty values? Like if I try to press Enter it won't let me move on to the other controls however if I press tab it works
This is an issue because I am using Enter key to simulate a tab keypress event alongside data entry
Hi Ammar,
Currently, we are analyzing your reported query. We will validate and update you with the details on or before 10th june 2022.
Regards,
Mahalakshmi sugumar
Hi Ammar,
Case 1: why does the MultiColumn ComboBox's SelectedValue_Changed event is
fired whenever I change the datasource?
We have
confirmed the reported scenario is a defect and logged a report for the
reported scenario “MulticolumnCombobox selects first item by default”. Please provide your version details. We will include the fix in our upcoming Weekly NuGet release or
through the patch based on your provided version on 1st July 2022(due
date).
You can track the status of this defect using the following
feedback link:
https://www.syncfusion.com/feedback/35592/multicolumncombobox-selects-first-item-by-default
If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.
Please let us know if you need any further assistance.
Case 2: This is an issue because I am using Enter key to simulate a tab
keypress event alongside data entry
There is no built-in support to change the focus from one control to another
control through the enter key.
Using the code below, you can change the focus using the enter key.
Code:
this.multiColumnComboBox1.KeyDown
+= MultiColumnComboBox1_KeyDown;
private void MultiColumnComboBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyData == Keys.Enter)
this.sfComboBox1.Focus();
}
Regards,
Mahalakshmi sugumar
Hi,
First of all thank you for responding and letting me know about the defect
secondly the package version I'm using is 19.4.0.53
and lastly I wasn't talking about changing focus alone
Even if I try to enter null data in combobox (that is move on without selecting any value it won't let me move until I have selected something) that is the only issue for now
Any idea what could be causing that?
I would appreciate any help regarding this
Even if I try to enter null data in combobox (that is move on without selecting any value it won't let me move until I have selected something) that is the only issue for now
Hi Ammar,
The MultiSelectionComboBox accepts null value also. To clear the selection (accept null value), please
clear text using backspace key and press enter key. We have attached a sample and video for your reference.
Please let us know if you need any further assistance.
Regards,
Mahalakshmi Sugumar
Hi Ammar,
Regards,
Bagavathi Perumal A