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

[Solved] Change in behavior with databind in 2011.2.712?

3 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dino
Top achievements
Rank 1
Dino asked on 03 Aug 2011, 09:13 PM
Hello,

I recently updated to the latest version (2011.2.712), and it would seem something broke. I am using custom binding with paging and am binding using the following code:

var jqxhr = $.ajax({
        url: requestUrl,
        type: "POST",
        cache: false,
        data: JSON.stringify(dataToSend),
        datatype: "json",
        contentType: "application/json; charset=utf-8",
        success: function (results) {
            if (results.data != null) {
                grid.total = results.total;
                grid.dataBind(results.data);
            }
        }
    });

In my case, the page size is 10, the total is 150 (or anything  > 10), and the results.data has a length of 10 (or whatever the page size is).

The paging works when using the older code (2011.1.414). (I see "Displaying 1-10 of 150")
Now, when I call grid.dataBind, the grid.total gets overwritten when I call grid.dataBind and I see that the total is now equal to the page size (i.e. 10) and I see "Displaying 1-10 of 10").

Am I supposed to perform this action differently with the new version?
Thanks!

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 04 Aug 2011, 08:06 AM
Hi Dino,

Could you please download the latest internal build and see if it makes any difference in the observed behavior.

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Dino
Top achievements
Rank 1
answered on 04 Aug 2011, 04:43 PM
Yes, it seems to be fixed with the latest internal build. Thanks!
0
Laksman
Top achievements
Rank 1
answered on 12 Sep 2011, 03:51 PM
Could you please get me the internal build as I'm also experiencing the issues over grid pagination and sorting that works fine with the previous version?
Tags
Grid
Asked by
Dino
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Dino
Top achievements
Rank 1
Laksman
Top achievements
Rank 1
Share this question
or