X - How to save list checked items?
Hi,

I don't want to use the ok button, can I click and after I leave the mouse away from the combobox, then the combobox will keep the list I have selected and display list concat string in combobox.text ? (it didn't save this !)
Also, can I checked all items by code?
Thanks!
SIGN IN To post a reply.
11 Replies
DV
Duraimurugan Vedagiri
Syncfusion Team
May 20, 2020 03:25 PM UTC
Hi GridLock,
Query 1: When click away from SfComboBox need to update the checked items
You can achieve your requirement by hiding the Ok and Cancel button with help of SfComboBox.DropDownControl.ShowButtons bool property.
please refer the below video for your reference.
https://www.syncfusion.com/downloads/support/forum/154423/ze/CombobBoxSelection1353676638.zip
Query 2: How to check all items by code
You can achieve your requirement by adding the dropdown items into SfComboBox.DropDownListView.CheckedItems collection. Please refer the below code snippet.
Regards,
Durai
Query 1: When click away from SfComboBox need to update the checked items
You can achieve your requirement by hiding the Ok and Cancel button with help of SfComboBox.DropDownControl.ShowButtons bool property.
please refer the below video for your reference.
https://www.syncfusion.com/downloads/support/forum/154423/ze/CombobBoxSelection1353676638.zip
Query 2: How to check all items by code
You can achieve your requirement by adding the dropdown items into SfComboBox.DropDownListView.CheckedItems collection. Please refer the below code snippet.
|
private void Form1_Load(object sender, EventArgs e)
{
foreach (var v in this.sfComboBox1.DropDownListView.View.Items.ToList())
{
this.sfComboBox1.DropDownListView.CheckedItems.Add(v);
}
} |
Regards,
Durai
TG
The GridLock
May 21, 2020 12:03 PM UTC
Hi Durai,
query1 doesn't work for me.
Edit: It seems that an event has prevented me, or I need to focus on a certain location for it to work.
Can I use some event to do it? I was thinking of using dropdownclosing to save list then reassign this list by event dropdownclosed, but not sure if it works.
query2, I hope sfcombobox.selectall function will be available soon :))
DV
Duraimurugan Vedagiri
Syncfusion Team
May 22, 2020 08:41 AM UTC
Hi GridLock,
Query: When click away from SfComboBox need to update the checked items
We have analyzed the reported query; you can achieve this requirement, only after closing the dropdown and can't focus the certain location(DropDown) with help of event.
Please let us know if you need any further assistance.
Regards,
Durai
Query: When click away from SfComboBox need to update the checked items
We have analyzed the reported query; you can achieve this requirement, only after closing the dropdown and can't focus the certain location(DropDown) with help of event.
Please let us know if you need any further assistance.
Regards,
Durai
TG
The GridLock
May 24, 2020 05:20 PM UTC
Hi Durai,
I still have not found the cause, maybe I need more time for it
DV
Duraimurugan Vedagiri
Syncfusion Team
May 25, 2020 08:20 AM UTC
Hi GridLock,
Thanks for your update.
We are looking forward to your confirmation. Please let us know if you require any further assistance on this.
Regards,
Durai
Thanks for your update.
We are looking forward to your confirmation. Please let us know if you require any further assistance on this.
Regards,
Durai
TG
The GridLock
May 28, 2020 05:40 AM UTC
DV
Duraimurugan Vedagiri
Syncfusion Team
May 29, 2020 02:56 PM UTC
Hi GridLock,
Thanks for your update
We can able to reproduce the reported issue and confirmed it as a defect. We have logged a defect report on this. The fix for the issue will be included in Vol2 release which will be roll out by end of June 2020.
You can track the status through the following feedback link:
https://www.syncfusion.com/feedback/14834/sfcombobox-multiselection-mode-selecteditem-is-not-updated-in-excel-add-in-when
Regards,
Durai
Thanks for your update
We can able to reproduce the reported issue and confirmed it as a defect. We have logged a defect report on this. The fix for the issue will be included in Vol2 release which will be roll out by end of June 2020.
You can track the status through the following feedback link:
https://www.syncfusion.com/feedback/14834/sfcombobox-multiselection-mode-selecteditem-is-not-updated-in-excel-add-in-when
Regards,
Durai
TG
The GridLock
May 30, 2020 01:45 PM UTC
Hi,
apply watermark for sfcombobox, i want it not change the color gray. but when sfcombobox disable and enable then watermark change color to black as text,
my image /
before:

after:
how can i avoid this?
DV
Duraimurugan Vedagiri
Syncfusion Team
June 1, 2020 12:08 PM UTC
Hi GridLock,
Thanks for your update.
This is default behaviour of SfComboBox, so you can't restrict and change the text fore color when SfComboBox.Enable as false.
Regards,
Durai
Thanks for your update.
This is default behaviour of SfComboBox, so you can't restrict and change the text fore color when SfComboBox.Enable as false.
Regards,
Durai
TG
The GridLock
June 2, 2020 12:40 AM UTC
Hi Durai,
agree! I thought that watermark is a label that works independently of combobox but it seems to be a given text and color. So I used text instead of it :))
DV
Duraimurugan Vedagiri
Syncfusion Team
June 2, 2020 08:08 AM UTC
Hi GridLock,
Thanks for your update.
Please let us know if you need any further assistance.
Regards,
Durai
Thanks for your update.
Please let us know if you need any further assistance.
Regards,
Durai
SIGN IN To post a reply.
- 11 Replies
- 2 Participants
-
TG The GridLock
- May 19, 2020 08:47 PM UTC
- Jun 2, 2020 08:08 AM UTC