Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1140
AutoComplete Textbox
posted

Hi,

How to make a Textbox as a AutoComplete or Autosuggest for the dynamic created textbox inside the WebDatagrid? I am creating a textbox in the Init method of the WebDataGrid as below code

Infragistics.Web.UI.GridControls.TextBoxProvider txtCustomer = new Infragistics.Web.UI.GridControls.TextBoxProvider();
txtCustomer.ID = "txtCustmer";
txtCustomer.EditorControl.AutoCompleteType = AutoCompleteType.Search;

this.HitGrid.EditorProviders.Add(txtCustomer);
Infragistics.Web.UI.GridControls.EditingColumnSetting columnSettingCustomer = new Infragistics.Web.UI.GridControls.EditingColumnSetting();
columnSettingCustomer.ColumnKey = "Key_CUSTOMER";
columnSettingCustomer.ReadOnly = (strrole == "ADM") ? true : false;
columnSettingCustomer.EditorID = txtCustomer.ID;
this.HitGrid.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(columnSettingCustomer);

Please do the Needful.

Thanks in Advance.