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

JSON Datasource Problem

1 Answer 47 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
CH
Top achievements
Rank 1
CH asked on 15 Jul 2013, 05:26 AM
Hi,

I making a simple autocomplete with remote json data, but it's not working, any idea?
thanks.

                var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        dataType: "json",
                        url: "http://www.crystalgroup.info/index.php/ajax/customer"
                    }
                  }
                   
            });
 
            $("#input_customer").kendoAutoComplete({
                dataTextField: "title",
                filter: "contains",
                minLength: 2,
                dataSource:dataSource
            });

1 Answer, 1 is accepted

Sort by
0
CH
Top achievements
Rank 1
answered on 15 Jul 2013, 05:32 AM
I have found the problem was the JSON format is not valid, JSON need to have " for key.
Tags
Data Source
Asked by
CH
Top achievements
Rank 1
Answers by
CH
Top achievements
Rank 1
Share this question
or