This is a migrated thread and some comments may be shown as answers.

How to get the text contents (box value) of AutoCompleteBox?

1 Answer 72 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Yan Moura
Top achievements
Rank 1
Veteran
Iron
Yan Moura asked on 15 Jan 2021, 02:17 PM

Hi, I need to retrieve the text contents of AutoCompleteBox in Javascript (client side).

I tried this but it just alerts me nothing (blank result):

<script>

function CheckOE() {
            alert(document.getElementById('RadAutoCompleteBox1').value);
        }

</script>

<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" 
            autopostback="true"
            DataSourceID="blah" DataTextField="blah" DataValueField="blah" InputType="blah" Width="100%"
            AllowCustomEntry = "false"
            DropDownWidth="150px"
            onfocusout="CheckOE()"
            >

Any idea?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 15 Jan 2021, 02:49 PM

Hello, Yan,

I would like to note that this forum is related to the Telerik UI for WinForms suite. According to the provided information, it seems that you don't use AutoCompleteBox from the WinForms suite. Feel free to post your question on the relevant forum according to the product that you use: https://www.telerik.com/forums  

Thank you for your understanding.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
AutoCompleteBox
Asked by
Yan Moura
Top achievements
Rank 1
Veteran
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or