How to apply search in combobox in custom textbox header

hi
I applied the solution in the next link:

but I have problem with the next function:

 Private Function FilterItem(ByVal data As Object) As Boolean
        If (TryCast(data, USState)).LongName.ToLower().Contains(Me.TextBox.Text.ToLower()) Then
            Return True
        End If
        Return False
    End Function

I don't have USState class because my Combobox source is  Datatable, so how we can solve this problem 

3 Replies 1 reply marked as answer

MO Mohamad December 17, 2020 03:58 PM UTC

any help please!


BR Bharathi Rajakantham Syncfusion Team December 17, 2020 05:05 PM UTC

Hi Mohamad,

Thanks for contacting Syncfusion Support,

We have checking the reported query “How to apply search in combobox in custom textbox header” from our side and we will update you the further details on 21st December 2020. We appreciate your patience until then.

Regards,

Bharathi R




BR Bharathi Rajakantham Syncfusion Team December 21, 2020 10:45 AM UTC

Hi Mohammad,

Thanks for your Patience,

We have checked your query “How to apply search in combobox in custom textbox header”  by preparing a simple sample and  passed the DataSource as DataTable and found that It doesn’t support filtering for DataTable.Please refer the documentation for loading a custom control in dropdown and achieve filtering. 
 
 
 
 
 
 

Please let us know if you have any other concerns.We will be glad to assist you.

Regards,

Bharathi R



Marked as answer
Loader.
Up arrow icon