loosing my mind

2 posts, 0 answers
  1. Christian
    Christian avatar
    1 posts
    Member since:
    Oct 2012

    Posted 27 Nov 2012 Link to this post

    Hello ..
    need some help before my brain explodes..
    cant seem to understand what im doing wrong

    have a quite simple autocomplete.

    $(document).ready(function () {
     
    var data =new kendo.data.DataSource({
            serverFiltering: true,
            transport: {
                read: "data/output.txt" 
            }
        });
      $("#input").kendoAutoComplete({
                dataSource: data
          });
            });
    But no matter how hard i try i dont get the result i want, just the list with one letter vertical..?
    I dont know how am the external file supposed to look? as now it just is:
    "value1",
    "value2",
    "value3"

  2. Burke
    Burke avatar
    41 posts
    Member since:
    Jun 2009

    Posted 30 Nov 2012 Link to this post

    Hi Christian!

    Kendo UI needs JSON or XML data, so give your file the extension .json (output.json) and then format your data as a valid array...
    ["value1",
    "value2",
    "value3"]
  3. Kendo UI is VS 2017 Ready
Back to Top