Pagination and scroll

Seeing the pagination on a page within a mobile device creates a scroll, when changing the page if we are in the middle of the scroll it does not return to the top, it would be necessary in my view every time I change the page to return to the top of the Grid. Is this possible?


4 Replies

KG Keerthana Ganesan Syncfusion Team August 30, 2022 03:49 PM UTC

Hi Fernando,

Greeting from Syncfusion support.

We have analyzed your query and suggest you refresh the paging grid action using the request type method. Kindly refer to the attached code snippet for your reference.

public void ActionBeginHandler(ActionEventArgs<Order> args)

    {

        if(args.RequestType==Syncfusion.Blazor.Grids.Action.Paging && args.PreviousPage > 0)

        {

            DefaultGrid.Refresh();

        }

    }


Kindly get back to us if you have any further queries.

Regards,

Keerthana.



FC Fernando Candido replied to Keerthana Ganesan September 6, 2022 07:16 PM UTC

Refresh does not reset the Grid to the beginning, it continues in the middle.



KG Keerthana Ganesan Syncfusion Team September 7, 2022 04:39 PM UTC

Hi Fernando,


Sorry for the inconvenience.


We are currently Validating the reported query at our end, and we will update the further details within two days(Sept9, 2022). Until then we appreciate your patience.


Regards,

Keerthana.



KG Keerthana Ganesan Syncfusion Team September 12, 2022 06:12 PM UTC

Hi Fernando,

Sorry for the inconvenience caused.

Query: Refresh does not reset the grid to the beginning, it continues in the middle.

We have analyzed your query and suggest you use the ScrollIntoViewAsync method to scroll the Grid programmatically. Kindly refer to the attached code snippet for your reference.

public async Task ActionBeginHandler(ActionEventArgs<Order> args)
    {
        if (args.RequestType==Syncfusion.Blazor.Grids.Action.Paging && args.PreviousPage > 0)
        {
                        await DefaultGrid.ScrollIntoViewAsync(1,0);
        }
   }


Kindly get back to us if you have any further queries.

Regards,

Keerthana.


Loader.
Up arrow icon