Intersoft WebCombo Documentation
How-to: Use AdditionalSearchField to search a query text on other column besides DataTextField column
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > User Interface Customization How-to Topics > How-to: Use AdditionalSearchField to search a query text on other column besides DataTextField column

Glossary Item Box

When you want to search for word that is not existed in DataTextField column, you can set AdditionalSearchField to specific columns. Therefore, the combo will search for the word in those columns.

This topic will show you how to use AdditionalSearchField from designer.

To set AdditionalSearchField

  1. Right click on the WebCombo instance and select WebCombo Designer.
  2. Set AdditionalSearchField to ContactName, City, Country in Advanced Settings.
  3. You can also set AdditionalSearchField from server-side like following:

    C# Copy ImageCopy Code
    protected void WebCombo1_InitializeLayout(object sender, ISNet.WebUI.WebCombo.LayoutEventArgs e)
    {
       e.Layout.ComboMode = Mode.MultipleColumns;
       WebCombo1.AdditionalSearchFields = "ContactName, City, Country";
    }
    

  4. Run the project.

See Also