VB.NET Example - custom search textbox header in combobox
Hi,
Request you to provide VB.NET example to add custom control in sfComboBox.
Conditions
1. Datasource list contains only Display members
2. Datasource list contains both Value and Display members.
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
RA
RAAHUL
March 11, 2021 06:34 PM UTC
Awaiting solution
VR
Vijayalakshmi Roopkumar
Syncfusion Team
March 12, 2021 03:59 AM UTC
Hi Rahul
Thank you for using Syncfusion products.
Our dashboard sample "Mutiselection combobox" of sfcombobox shows the demo of custom search textbox . However we are currently preparing the sample in VB and update you the solution shortly.
Regards,
Vijayalakshmi VR
RA
RAAHUL
March 12, 2021 08:45 AM UTC
Hi Vijayalakshmi,
Have tried based available demo [C# Code]. However, getting errors in most of the places when converted to VB.net. Hence, requested for same.
Awaiting your response.
Regards,
Raahul
EM
Elakkiya Muthukumarasamy
Syncfusion Team
March 15, 2021 01:24 PM UTC
Hi RAAHUL,
Thanks for your patience.
We have checked your query ”VB.NET Example - custom search textbox header in combobox” and we have prepared the VB.Net sample for create custom search textbox header in SFComboBox. Please refer the below sample for the same.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Custom_SFComboBox915157852
Code snippet:
|
Me.SearchTextComboBox.DataSource = list
Me.SearchTextComboBox.DisplayMember = "LongName"
Me.SearchTextComboBox.ValueMember = "ShortName"
Me.SearchTextComboBox.ComboBoxMode = ComboBoxMode.MultiSelection
Me.SearchTextComboBox.AllowSelectAll = True
Me.SearchTextComboBox.ShowToolTip = True
Me.SearchTextComboBox.ThemeName = "Office2016Colorful"
customTextBox = New CustomHeaderUserControl(Me.SearchTextComboBox)
Me.SearchTextComboBox.TextBox.Font = New Font("Microsoft Sans Serif", 9.75f)
Me.SearchTextComboBox.DropDownListView.Style.ItemStyle.Font = New Font("Microsoft Sans Serif", 9.75f)
Me.SearchTextComboBox.DropDownListView.ShowHeader = True
Me.SearchTextComboBox.DropDownListView.HeaderHeight = 23
Me.SearchTextComboBox.DropDownListView.HeaderControl = customTextBox
Me.SearchTextComboBox.DropDownListView.AllowSelectAll = True
Me.SearchTextComboBox.MaxDropDownItems = 11
Me.SearchTextComboBox.CheckedItems.Add(list(1))
Me.SearchTextComboBox.CheckedItems.Add(list(12)) |
Please try it with the above solution and let us know if you need any further assistance on this.
Regards,
Elakkiya
Marked as answer
RA
RAAHUL
March 16, 2021 08:03 AM UTC
Hi Elakkiya,
Thanks for the sample code. Will check and let you know if any other information is required.
Regards,
Raahul
VR
Vijayalakshmi Roopkumar
Syncfusion Team
March 17, 2021 06:04 AM UTC
Hi Rahul
Thank you for your update.
Please let us know if you need any other assistance on this.
Regards,
Vijayalakshmi VR
SIGN IN To post a reply.
- 6 Replies
- 3 Participants
- Marked answer
-
RA RAAHUL
- Mar 10, 2021 07:35 PM UTC
- Mar 17, 2021 06:04 AM UTC