How to design this kind of paging?

This is my User Interface design of paging.


That is is what I coded. How to remove "1 of 8 pages" and arrange the paging navigator into center?

Image_9794_1698824289968 

SizedBox(
width: constraints.maxWidth,
height: 425,
child: buildDataGrid(constraints),
),
SizedBox(
width: constraints.maxWidth,
child: SfDataPager(
pageCount: pageCount,
direction: Axis.horizontal,
delegate: _storeDataSource,
onPageNavigationStart: (int pageIndex) {
print('777777777');

// showLoadingIndicator.value = true;
},
onPageNavigationEnd: (int pageIndex) {
print('88888888');

// showLoadingIndicator.value = false;
},
),
),

7 Replies

TP Tamilarasan Paranthaman Syncfusion Team November 2, 2023 12:44 PM UTC

Hi WONG PEI SAN,

As per the implementation of DataPager, the dataPagerLabel is configured to become visible when the available width exceeds 975; otherwise, it remains hidden in the view. To meet your specific requirements, you have the flexibility to adjust the DataPager's width. You can set it to half of the available screen width or to any value less than 975 to hide the label. Opting for a width equal to half of the available screen width will result in the label being centered. For a more detailed explanation, please review the provided code snippet.


  @override

  Widget build(BuildContext context) {

    return Scaffold(

      appBar: AppBar(title: const Text('PageNavigation Demo')),

      body: LayoutBuilder(

        builder: (BuildContext context, BoxConstraints constraints) {

          return Column(

            children: [

              SizedBox(

                height: constraints.maxHeight - 60,

                child: SfDataGrid(

                  source: _employeeDataSource,

                  rowsPerPage: rowsPerPage,

                  columns: getColumns,

                  columnWidthMode: ColumnWidthMode.fill,

                ),

              ),

              SizedBox(

                height: 60,

                width: constraints.maxWidth / 2,

                child: SfDataPager(

                    pageCount: pageCount, delegate: _employeeDataSource),

              ),

            ],

          );

        },

      ),

    );

  }





​Regards,

Tamilarasan

​Note: If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



WP WONG PEI SAN A20EC0170 November 6, 2023 09:31 AM UTC

tq it is so useful



WP WONG PEI SAN A20EC0170 November 6, 2023 09:38 AM UTC

Image_5713_1699263489253

How to do the paging like this? 

it will show the row data startIndex to endIndex per page and total length of data



WP WONG PEI SAN A20EC0170 November 6, 2023 10:00 AM UTC

how to arrage the sorting symbol beside the title?Image_6670_1699263710050 and use this symbol instead.


How to show the paging like this?  Image_5713_1699263489253



This what shown in my codeImage_8663_1699264764229   Image_7683_1699263629754



TP Tamilarasan Paranthaman Syncfusion Team November 7, 2023 12:55 PM UTC

Wong Pei San,


Regarding: how to arrange the sorting symbol beside the title?


As of now, the Flutter SfDataGrid doesn’t have support for showing the sort icon beside the header text. We have already considered your request as a feature. We will implement this feature in any of our upcoming releases. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience and understanding until then. You can follow up with the below feedback for further follow-up,


Feedback Link: https://www.syncfusion.com/feedback/45094/support-for-showing-the-filter-and-sort-icons-next-to-the-header-text


If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.  


Regarding: use this symbol instead.


We have already provided detailed information on how to set the custom sort icon in the user guide documentation. Please refer to the provided document for step-by-step instructions. Please let us know if you need further assistance regarding this. As always, we are happy to help you out.


Custom Sort Icon: https://help.syncfusion.com/flutter/datagrid/sorting#set-a-custom-sorting-icon

Regarding: How to show the paging like this?

Based on the provided image, your requirements are not entirely clear to us. To better assist you, could you please provide more detailed information about your specific requirements and use case details? This additional information will enable us to thoroughly assess your needs and offer an appropriate solution.



WP WONG PEI SAN A20EC0170 November 8, 2023 06:24 AM UTC

Image_5713_1699263489253How to do the pagination bar like this. It will show the number of row data in the page, which means in this page there is data[1] until data[7] and total data in the list is 8. Beside that, there will be the previous and next page button which arrange at the right bottom page



TP Tamilarasan Paranthaman Syncfusion Team November 9, 2023 12:40 PM UTC

Wong Pei San,


Regarding: It will show the number of row data in the page, which means in this page there is data[1] until data[7] and total data in the list is 8.

As of now, the Flutter SfDataPager doesn’t have support for changing the DataPager label. We have already considered your request as a feature. We will implement this feature in any of our upcoming releases. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience and understanding until then. You can follow up with the below feedback for further follow-up,


Feedback link:  https://www.syncfusion.com/feedback/47936/support-for-setting-custom-text-for-datapager-static-labels


If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.  


Regarding: Beside that, there will be the previous and next page button which arrange at the right bottom page.


In the current implementation of SfDataPager, there is no provision for adjusting the position of the next and previous buttons. Currently, they are displayed on the left side along with other buttons, and this is a limitation of SfDataPager.


Loader.
Up arrow icon