For the intense ASP.NET combobox user, we offer power searching like never before. Now search within the field as well as at the beginning, AND
search other columns as well; put both features together for SuperSearch.
US Cities (with states):
Set the SearchLevel property:
WithinField
AllFields
SuperSearch
Here is the complete code for this demo -- formatting and all, so it's rather long. The only difference is
that the ComboSearchLevel property is actually set in a server-side subroutine here, and translated
to a tag attribute in order to be visible below.
<ELB:EasyListBox id="superSearch" runat="server"
DisplayMode="combo"
UseAjax="True"
ComboSearchLevel="WithinField"
Height="120px"
Width="250px"
ButtonColor="#cff2fa"
ArrowColor="#0000ff"
LimitToList="False"
Style="font-size:10pt;"
FontSize="10pt"
FontFamily="tahoma"
MaxLength="50"
Background="#9ee1fa"
TextColor="black"
RollBGColor="white"
RollTextColor="#067694"
Cacheduration="1"
ListBorderStyle="Solid"
BorderColor="steelblue"
ConnectionStringSqlServer="connectionstring"
SelectQuery="SELECT CityName, StateName FROM USCities ORDER BY CityName"
DataValueField="CityName"
DataTextField="CityName"
DataTextField2="StateName" />
|