Intersoft Support Center

Configure Additional Search Fields

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 InitializeLayout server-side event 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.
Previous Next