Hi there,
I have an auto complete box in my RadGrid. I've got it binding with ItemDataBound and populating with a previously selected value, but it doesn't start auto-completing when I clear out the data and type something new. I've had a Google around, but haven't been able to find where I'm going wrong.
I have an auto complete box in my RadGrid. I've got it binding with ItemDataBound and populating with a previously selected value, but it doesn't start auto-completing when I clear out the data and type something new. I've had a Google around, but haven't been able to find where I'm going wrong.
<
telerik:GridTemplateColumn
DataField
=
"ProgramOfficerName"
FilterControlAltText
=
"Filter TemplateColumnArgumentOfficerName column"
HeaderText
=
"Argument Officer Name 2"
UniqueName
=
"TemplateColumnArgumentOfficerName"
>
<
ItemTemplate
>
<
telerik:RadAutoCompleteBox
ID
=
"radAutoCompleteTest"
Runat
=
"server"
InputType
=
"Text"
TextSettings-SelectionMode
=
"Single"
>
<
TextSettings
SelectionMode
=
"Single"
/>
</
telerik:RadAutoCompleteBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Protected
Sub
gridCommentingOfficers_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
gridCommentingOfficers.ItemDataBound
Dim
item
As
GridDataItem = TryCast(e.Item, GridDataItem)
Dim
dtUsers
As
DataTable = _functions.Get_AsDataTable(
"select eDistinguishedName, eUserName from Metastorm.dbo.eUser"
)
If
Not
item
Is
Nothing
Then
Dim
auto
As
RadAutoCompleteBox = item.FindControl(
"radAutoCompleteTest"
)
auto.Entries.Add(
New
AutoCompleteBoxEntry(item(
"columnProgramOfficerName"
).Text, item(
"columnProgramOfficerLogin"
).Text))
auto.DataTextField =
"eDistinguishedName"
auto.DataValueField =
"eUserName"
auto.DataSource = dtUsers
auto.DataBind()
End
If
End
Sub