Basing a parameter on a variable

2 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 02 Apr 2012 Link to this post

    Give the following definition
    read: {
                    url: _webservicePath + "/GetMyFoods",
                    type: "POST",
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    data: {
                        userid: getCurrentUserID(),
                        sortOrder: getSortOrder()
                    }
                },

    Why when I call read again on the DS doesn't it re-evaluate the "sortOrder"?...how do I get it to do that? :)
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Apr 2012 Link to this post

    Hello,

     I can't reproduce this in a simple test: http://jsfiddle.net/korchev/qUgy4/2/ Does that work for you?

    Kind regards,
    Atanas Korchev
    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
Back to Top