What am i doing wrong in my code :(

2 posts, 0 answers
  1. Nadia
    Nadia avatar
    1 posts
    Member since:
    May 2014

    Posted 11 May 2014 Link to this post

    hi all, I don't know what am I doing wrong here, its a pretty straight forward things. autocomplete is not showing anything.


    moviesuggestions =
    new kendo.data.DataSource({
        autoSync: true,
        transport: {
            read: function (options) {
                theMovieDb.search.getMovie({ "query": $("#seriesname").val(), search_type: "ngram" },
                function (data) {   //success
                    options.success($.parseJSON(data).results);
                }, function (data) {    //error
                    options.error($.parseJSON(data).results);
                });
            }
        }
    });
     
    autocomplete = $("#seriesname").kendoAutoComplete({
        datasource: moviesuggestions,
        dataTextField: "title",
        suggest: true
    });
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 12 May 2014 Link to this post

    Hello Nadia,

    From the provided sample I cannot tell you what exactly is the problem in your code. Here is a code sample showing a working autocomplete that you can edit. So please edit the example in order to show the issue that you are facing, so we can better assist you:

    http://jsbin.com/kuqubo/2/edit

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top