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

Basing a parameter on a variable

1 Answer 53 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 03 Apr 2012, 03:40 AM
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? :)

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Apr 2012, 08:47 AM
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!
Tags
Data Source
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Atanas Korchev
Telerik team
Share this question
or