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
- Right-click on the WebCombo instance and select WebCombo
Designer.
- Set AdditionalSearchField to ContactName, City, Country
in Advanced Settings.
- You can also set AdditionalSearchField from InitializeLayout server-side event like following:
protected void WebCombo1_InitializeLayout(object sender, ISNet.WebUI.WebCombo.LayoutEventArgs e)
{
e.Layout.ComboMode = Mode.MultipleColumns;
WebCombo1.AdditionalSearchFields = "ContactName, City, Country";
}
|
- Run the project.