When in browser mode, RadAutoCompleteColumn looks like GridBoundColumn, rendering the text directly to the cell. When in edit mode, it displays a RadAutoCompleteBox control. It shows list of suggested values, that to appears when the user starts to type inside it. You can bind list using the DataSourceID or DataSource. In Edit mode the initial Text of the AutoCompleteBox will be populated based on DataSource of the GridTableView and the DataField set for the column.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridAutoCompleteColumn : GridEditableColumn, IStateManager, IComparable, IGridEditableColumn, IGridDataColumn
Inheritance: objectGridColumnGridEditableColumnGridAutoCompleteColumn
Implements:
Inherited Members
Constructors
public GridAutoCompleteColumn()
Properties
Gets or sets a value indicating whether the user will be able to add a custom text not present within the raw data in order to create a custom entry.
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("allowCustomEntry")]
public bool AllowCustomEntry { get; set; }
Gets a value indicating whether the text of the RadAutoComplete Tokens can be edited when user double clicks on it.
public bool AllowTokenEditing { get; set; }
The DataField property points to the column in the grid data-source containing values which will be compared at a later stage with the values available in the column
public string DataField { get; set; }
A string, specifying the ID of the datasource control, which will be used to populate the AutoCompleteBox with data.
public string DataSourceID { get; set; }
A string, specifying the ID of the datasource control, which will be used to populate the AutoCompleteBox with data.
Gets or sets the DataTextField.
public virtual string DataTextField { get; set; }
The DataTextField.
Gets or sets the DataValueField.
public virtual string DataValueField { get; set; }
The DataValueField.
Gets or sets a value indicating what delimiter should be used when the control displays the selected items as text (InputType = Text)
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("delimiter")]
public string Delimiter { get; set; }
Sets or gets default text when column is empty. Default value is " "
public virtual string EmptyDataText { get; set; }
Gets or sets a value indicating whether the RadAutoCompleteBox should apply “Contains” or “StartsWith” filter logic.
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("filter")]
public RadAutoCompleteFilter Filter { get; set; }
Gets or sets a value indicating how the RadAutoCompleteBox items should be displayed - as tokens or as text.
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("inputType")]
public RadAutoCompleteInputType InputType { get; set; }
A Boolean value, indicating whether the column is editable. If it is editable, it will be represented as an active AutoCompleteBox in edit mode.
public override bool IsEditable { get; }
A Boolean value, indicating whether the column is editable.
Overrides:
Gets a value indicating whether the user can select multiple entries.
public RadAutoCompleteSelectionMode SelectionMode { get; set; }
Methods
Clone the current column
protected override void ColumnEditorChange(IGridColumnEditor newValue)
Overrides:
protected override void CopyBaseProperties(GridColumn fromColumn)
Overrides:
protected override IGridColumnEditor CreateDefaultColumnEditor()
Overrides:
Sets the value of the property CurrentFilterValue as a text on the TextBox control found in the cell
protected override void SetCurrentFilterValueToControl(TableCell cell)
Overrides:
This method should be used in case you develop your own column. It returns true if the column supports filtering.