No cross domain call

4 posts, 1 answers
  1. Tony
    Tony avatar
    23 posts
    Member since:
    May 2011

    Posted 01 Sep 2011 Link to this post

    Hi there,

    We're trying first attempt at the DataSource, and it's not making the call....

    var dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    // the remote service url
                    url: "/Query/GetNews",
     
                // JSONP is required for cross-domain AJAX
                    dataType: "json"
                }
            }
        });

    Does the DataSource NEED a http address?

    Cheers
  2. Answer
    Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 02 Sep 2011 Link to this post

    Hello Tony,

    If you attempt to perform cross domain call DataSource will need full address. See the configuration on the following demo:
    http://demos.kendoui.com/datasource/index.html

    Greetings,
    Nikolay
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Vladimir
    Vladimir avatar
    5 posts
    Member since:
    Sep 2011

    Posted 12 Sep 2011 Link to this post

    Cross domain still doesn't work from local dev-server (localhost). 
    [Origin http://localhost is not allowed by Access-Control-Allow-Origin.]

    jQuery > 1.5 has an option for $.ajax called {crossDomain : true/false}, which allows me to perform cross domain ajax calls.

    Is there a way to make similar ajax-setup in kendo ?

    UPDATE:

    I must apologize. Everything works very good. I just didn't pay enough time for reading documentation and examples.
  5. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 16 Dec 2011 Link to this post

    Vladimir, what was your solution?

Back to Top
Kendo UI is VS 2017 Ready