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

Using autocomplete with our local oData service

2 Answers 135 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Paulie
Top achievements
Rank 1
Paulie asked on 12 Jan 2012, 06:31 PM
I trying to get autocomplete working with an ODS data service we developed locally.  I have the Netflix example working fine, but when I plug in my odata service instead it doesn't work.

I've attached the data that my service returns.  As far as I can tell the format is the same as the Netflix sample. The DataServiceProtocolVersion is being set to V2.

Here is my js code:

    $("#input").kendoAutoComplete({
        minLength: 3,
        dataTextField: "STRATEGY_NM",
        dataSource: {
            type: "odata",
            serverFiltering: true,
            serverPaging: true,
            pageSize: 20,
            transport: {
                read: "http://localhost:53673/MyoData.svc/STRATEGIES"
            }
        }
    });

2 Answers, 1 is accepted

Sort by
0
Gabriel
Top achievements
Rank 1
answered on 17 Jan 2012, 12:54 AM
Have you tried using Fiddler and comparing both your service and Netflix just to rule that out entirely?
0
Sovan
Top achievements
Rank 1
answered on 19 Jan 2012, 09:17 AM
You've written your service name wrong.
Should be MIO_oData.svc
Tags
AutoComplete
Asked by
Paulie
Top achievements
Rank 1
Answers by
Gabriel
Top achievements
Rank 1
Sovan
Top achievements
Rank 1
Share this question
or