I have a RadAutoCompleteBox. Many times I fill it dynamically with a SQL Query.
But on an occasion, I need to fill it with "N/A" and Select "N/A" Automatically.
Is there a way to do this?
Thanks,
Rog
1 Answer, 1 is accepted
0
Attila Antal
Telerik team
answered on 27 Jul 2021, 08:21 AM
Hi Roger,
You can add entries on the Client (Recommended)
functionOnClientClicked(sender, args) {
var autoCompleteBox = $find("<%= RadAutoCompleteBox1.ClientID %>");
var entry = new Telerik.Web.UI.AutoCompleteBoxEntry(); // create the entry
entry.set_text("N/A"); // set the text of the Entry
autoCompleteBox.get_entries().add(entry); // Add the Entry to the AutoCompleteBox entry collection
}