Hi,
I would like to create a ultracombo which can do multiple selection as filter of a report. If possible allow to select dropdownlist by shift + click or drag.
Hope there is a sample code that I can study on it.
The ultracombo I want to make is something like the sample in picture below.
Thank you very much!
Thank you for contacting Infragistics Developer Support.
You could create a MultiSelect combo (for more information on that: http://help.infragistics.com/Doc/WinForms/2014.1/CLR4.0/?page=WinCombo_Selecting_Multiple_Values_within_WinCombo.html) and then hide the checkbox column. You will also want to make sure that the CheckedListSettings.ItemCheckArea is set to Item.
I have attached a sample demonstrating this suggestion.
Let me know if you have any additional questions.
Thanks for your advice, I able to make the ultracombo with multiple selection.
I have another question, how can I set the default value of ultracombo to "select all" ?
Warm regards,
PC
Hello PC,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thank you for the reply.
One way to implement this feature is to handle the text changed event of the UltraCombo TextBox. Check if the text is empty and if it is set it to “Select All”. Also you will need to use the SetIntialValue method in order to display the “Select All” text in the beginning as the TextChanged event won’t be raised before drop down of the combo.
I have modified my sample in order to demonstrate this. I have also downgraded it to VS 2010.
Please let me know if you have any additional questions.