Bug Report T866890
Visible to All Users

DataGrid - A pager works incorrectly when the remote virtual scrolling feature is enabled in a certain scenario

created 5 years ago (modified 5 years ago)

Hello Devexpress,

I am having some issues with the DxDataGrid's paging when using remote virtual scrolling. I am not sure if it is a bug in the datagrid or if I am using incompatible features. Any help would be appreciated.

I have attached a sandbox that demonstrates my problem below. I believe it effects small data sets with only two pages of data.

Relevant information: The page size for the pager is 20 records
The data set has been restricted to 27 records.

Reporduce:

Problem 1:
On Opening the sandbox scroll as far to the bottom of the dataset as possible. The final row should be Id 27. The pager is still showing that the data set is on page one when all of the visible records are from page 2. This issue appears to go away on a smaller screen but I want to display more data than the grid will allow. (it is only showing ~3 records when this issue stops happening)

Problem 2:
Click on the "2" pager button to go to the second page. Scroll to the bottom the data set so that Id 27 is showing. At this point Clicking on the "1" Page button does not return the grid to the top of the page rather it just shifts the grid slightly upwards.

Problem 3:
This is mostly the same as Problem 2. Start by clicking the "Open in New Window" button in sandbox to make the Grid full Screen. Click the "2" page button and scroll the rest of the way to the bottom until Id 27 is showing. At this point clicking on the "1" page button does not return the grid to the top of the page but it also selects the "1" page button preventing it from being reclicked to return to the top of the grid.

My Sandbox:
https://codesandbox.io/s/remote-virtual-scrolling-devextreme-data-grid-paging-error-for-small-data-sets-09tus?fontsize=14&hidenavigation=1&theme=dark

This Sandbox was forked from here and then the filter and pager were added.https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/RemoteVirtualScrolling/Angular/Light/

Comments (3)
DevExpress Support Team 5 years ago

    Hi,

    Thank you for pointing out this behavior. I reproduced it and forwarded it to our team for research. We will contact you once we have any results. We greatly appreciate your time and cooperation.

      Hi Lex,

      Is there any update on this ticket?

      DevExpress Support Team 5 years ago

        Hi Sitech,

        At the moment, we do not have any news on this. The issue is quite complex and requires additional research. We will let you know once we have any updates.

        Answers approved by DevExpress Support

        created 5 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.