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

loosing my mind

1 Answer 41 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 27 Nov 2012, 03:57 PM
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"

1 Answer, 1 is accepted

Sort by
0
Burke
Top achievements
Rank 1
answered on 30 Nov 2012, 03:48 PM
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"]
Tags
AutoComplete
Asked by
Christian
Top achievements
Rank 1
Answers by
Burke
Top achievements
Rank 1
Share this question
or