blob: 525904cd944779f893e0719f14a09b135658ea52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<com:TContent ID="body">
<h1 id="180030">TAutoComplete</h1>
<com:DocLink ClassPath="System.Web.UI.ActiveControls.TAutoComplete" />
<p class="block-content">
This widget is deprecated. Please use <a href="?page=JuiControls.Widgets#TJuiAutoComplete">TJuiAutoComplete</a> instead.
</p>
<p class="block-content">
<tt>TAutoComplete</tt> is an extended <tt>ActiveTextBox</tt> that provides a list of suggestions on the current partial word typed in the textbox. The suggestions are requested using callbacks. The <tt>Frequency</tt> and <tt>MinChars</tt> properties sets the delay and minimum number of characters typed, respectively, before requesting for sugggestions. An embedded <tt>TRepeater</tt> is used to Display the list of suggestions. It can be accessed and styled through the <tt>Suggestions</tt> property and its sub-properties.<p id="900022" class="block-content">
<p class="block-content">
On each request for suggestions, the <tt>OnSuggestion</tt> event will be raised. The event handler receives the entered token that can be used to build the list of suggestions and to dataBind() it to the <tt>Suggestions</tt> repeater.</p>
<p class="block-content">
When a suggestion is selected the <tt>OnSuggestionSelected</tt> event is raised, with the index of the selected suggestion contained in the parameter. Multiple selections can be performed in the same textbox. The selections must be separated by any characters specified with the <tt>Separator</tt> property.
</p>
<com:RunBar PagePath="ActiveControls.Samples.TAutoComplete.Home" />
</com:TContent>
|