This project is read-only.

AutoComplete

usage

remote data source
[AutoComplete( "Autocomplete" /*action name*/ , "Home" /*controller name*/)]
public string AutoComplete1 { get; set; }

[AutoComplete( "/home/autocomplete" /*source url*/)]
public string AutoComplete2 { get; set; }

static data source
[AutoComplete( "[\"item1\", \"item2\", \"item3\"]" /*source data */)]
public string AutoComplete { get; set; }

Other options

/// <summary>
/// Disables the autocomplete
/// </summary>
public bool Disabled

/// <summary>
/// A specific selector to append the menu to.
/// </summary>
public string AppendTo

/// <summary>
/// The delay between the last key up event and when the search is triggered.
/// </summary>
public int Delay

/// <summary>
/// The minimum length before the search is triggered.
/// </summary>
public int MinLength

Events

public string Create { get; set; }
public string Search { get; set; }
public string Open { get; set; }
public string Focus { get; set; }
public string Select { get; set; }        
public string Close { get; set; }
public string Change { get; set; }

For more information on the auto complete events and options see http://jqueryui.com/demos/autocomplete/

Last edited Feb 21, 2011 at 5:09 AM by brk6004, version 9

Comments

No comments yet.