Selecting combobox item

Hi there,

Can someone please tell me how to set the selected item based on a passed in value in the MultiColumnComboBox?

Basically I have a combobox being filled by a series of numbers (with other columns).  For example, the combobox has been loaded with 1-20 and I am passing 15 to it.  I want 15 to be the number in the combobox, not the number one.

Hopefully, that is clear.  Thanks so much, I sure I just missing something easy on this Friday afternoon.


4 Replies

DV Duraimurugan Vedagiri Syncfusion Team April 6, 2020 09:25 AM UTC

Hi kelz,

Thanks for using syncfusion products.

We have analyzed the reported query “Need to set MultiColumnComboBox selected item based on passed value” and prepared the simple sample based on your requirement.

Here is the sample that works as expected : https://www.syncfusion.com/downloads/support/forum/153012/ze/MultiColumnComboBox-1495671961

In that sample MultiColumnComboBox selected item is changed based on the ComboBox index. If we misunderstood your actual requirement, could you please share the detailed description about your requirement by modify our sample into query reproducible. It would be helpful for us to provide the solution at the earliest.

Regards,
Durai



KE kelz April 6, 2020 09:20 PM UTC

I need to set the multicombobox value when the form loads, not when another value is changed.

I will look through the code that you provided and see if it gives me something to work with.

Thanks so much.


KE kelz April 6, 2020 09:45 PM UTC

Never mind.  

I was trying to set .selecteditem and that was not correct.

I noticed in your example that you were just setting the text and that gives me what I need.

Thanks so much.


DV Duraimurugan Vedagiri Syncfusion Team April 7, 2020 08:05 AM UTC

Hi kelz,

Thanks for your update.

Please let us know if you need any further assistance.

Regards,
Durai

Loader.
Up arrow icon