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

Autocomplite with list

1 Answer 39 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Ferenc
Top achievements
Rank 1
Ferenc asked on 14 Apr 2014, 04:21 PM
Does anybody have any idea why the autocompile not working?

Here my js code:

var list = [];
$.post('get_all_teaor', function(data){
    $.each($.parseJSON(data), function() {
        list.push("(" + String(this.id) + ") " + String(this.teaor_name) + "|");
    });
});
 
$("#business_branch").focus(function() {
    $(".foo").html(list);
    console.log(typeof(list));
    console.log(list.length);
    $('#business_branch').kendoAutoComplete({
        dataSource: list,
        placeholder: "Kérem várjon ..."
    });
});

It didnt show anything, but the list is not empty.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Apr 2014, 01:12 PM
Hi Ferenc,

Without the actual data that you pass to the AutoComplete widget we are not able to tell you what is wrong with it. Please use this jsBin to create a small runnable sample, with your data, so we can see what exactly goes wrong and advise you further.

Thank you in advance for your cooperation.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
AutoComplete
Asked by
Ferenc
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or