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"? do I get it to do that? :)
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 03 Apr 2012 Link to this post


     I can't reproduce this in a simple test: 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!
Back to Top