Hi Peter,
We are sorry that the previous response in the thread has not been useful for you. We were looking for more information from the user to provide a complete solution as the requirement was partially supported by us and we wanted clarity on the scenario of the forum user.
Here is generic response on the query which would add useful information to this thread. Currently, we can add the Searchable ComboBox to grid in two ways one is as an Edit time control(EditItemTemplate) and another is as a Browse time control(ItemTemplate).
Following code illustrates how to add Edit Item Template
[ASPX]
. . .
< . . . >
<%--For EditItemTemplate - As Edit time control--%>
OnTextChanged="auto_TextChanged">
<%--For ItemTemplate - As Browse mode control--%>
OnTextChanged="auto_TextChanged">
<. . . >
. . .
[CS]
protected void auto_ProvideChoiceListOnCallback(object sender, ACUserChoiceListEventArgs e)
{
e.ChoiceList = GetDataSource().FindAll(l => l.Number.ToString().StartsWith(e.Key)).Select(l => l.Number).ToArray();
}
protected void auto_TextChanged(object sender, EventArgs e)
{
AutoCompleteTextBox auto = sender as AutoCompleteTextBox;
GridCell cell = auto.NamingContainer as GridCell;
//To save the combo box value to a database – please use the following line of code
// Code to update the changed text value in Record Object. And you can save the changed values in DataBase in DataSourceControlRowUpdating/Adding event
cell.Row.Record.SetValue(cell.ColumnDescriptor.Name, auto.Text);
}
Please refer the attachment for sample application.
P.S: Currently we don't have support for adding searchable ComboBox as a filter control, we have already logged feature request report for this. If you like to know more on this feature request, you may check with us by logging an incident using our direct trac support system.
Let me know if you have any concerns.
Regards,
Bharath M
AutoComplete_a6b14f9a.zip