We help IT Professionals succeed at work.
Get Started

kendo ui autocomplete with json <HELP>

615 Views
Last Modified: 2015-09-25
I'm sure i'm just missing the basics.   I have a json file on my IIS Web Server (Windows 2012) located under a folder called "Jsond"

For testing i created the json file from : http://www.json-generator.com/

I have no idea why i can't get the code from Kendo UI web site to work on my local test box?  What I'm i missing or need to learn.
(using MS visual studio 2013 (free) to code and test with)

I have a feeling it has something with the URL, but google is not finding me anything.

 <input id="autocomplete" />
    <script>
var dataSource = new kendo.data.DataSource({
  transport: {
    read: {
      url: "/jsond/json.json",
      dataType: "json"
    }
  }
});
$("#autocomplete").kendoAutoComplete({
  dataSource: dataSource,
  dataTextField: "name"
});
    </script>

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE