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

Grid virtual scrolling not updating count

3 Answers 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 16 Mar 2012, 02:06 AM
Hi guys,

I'm having an issue with a server paged data source, where if the length of the result set changes the data source is not updated with the change. For example:

                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "json",
                            serverPaging: true,
                            pageSize: 100,
                            transport: {
                                read: {
                                    url: "/Req/Azure",
                                    dataType: "jsonp",
                                    data: {
                                        sid: sid,
                                        q: query
                                    }
                                }
                            },
                            schema: {
                                data: "data",
                                total: "total"
                            }
                        },
                        height: h,
                        width: "auto",
                        scrollable: {virtual: true},
                        selectable: "row"
                    });

If on the first request of the data source (page=1, skip=0, take=100) the total is 200 and on the second request (page=2, skip=100, take=100) the total is 202, the data source never makes a third request as it has reached the initial 200 records.

Any ideas how i can work around this issue?
Tony

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 19 Mar 2012, 01:26 PM
Hi Tony,

Indeed, you are correct. However, we were able to address this issue and the fix will be included in the Q1 2012 release. I have also updated your telerik points as token of gratitude. 

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tony
Top achievements
Rank 1
answered on 22 Mar 2012, 11:35 PM
Thanks Rosen, that's fixed the issue.

Tony
0
srikanth
Top achievements
Rank 1
answered on 12 Nov 2013, 02:21 PM
Is this fixed with filtering also enabled?. I don't see any problem when there is no filtering enabled with a varying 'total'
However when server filtering is enabled kendo ui keeps sending the ajax calls even when the items received equals  the 'total' 

Note:  I am not talking about the fast scrolling issues(a different issue which i solved using some other ways ) But  With server Filtering i can never reach the end of the page.(even with one request at a time)  I tried some custom validation in read() function to prevent ajax calls but the scrolling event is still there (which causes the loader icon to reappear again. Also why  requestStart and requestEnd wont be  invoked  while scrolling with filtering enabled?
Tags
Grid
Asked by
Tony
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Tony
Top achievements
Rank 1
srikanth
Top achievements
Rank 1
Share this question
or