We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Centering SfDataPager buttons


I am currently trying to use the SfDataPager, and I wanted to center the buttons on my page based on how many buttons are displayed, but I can't seem to be able to do it.

My problem occurs on these devices :
- LG G4 on Android 6.0
- Panasonic FZ-N1 on Android 8.1

I've included a sample project showing my issue. Is there anything I am missing to make it work?

Attachment: SfGridSample_ec40b60f.zip

2 Replies

BS Balasubramani Sundaram Syncfusion Team November 7, 2019 03:12 PM UTC

Hi Maxence, 
Thank you for contacting Syncfusion support.   
Currently, we are validating the reported issue “Centering SfDataPager buttons”. We will validate and update you further details on November 8th, 2019. We appreciate your patience until then.          
Balasubramani Sundaram. 

BS Balasubramani Sundaram Syncfusion Team November 8, 2019 06:21 PM UTC

Hi Maxence,  
Thank you for your patience,  
We have fully provided the support for customizing the SfDataPager “LayoutOptions” in our 2019 Volume 3 SP1 in version of “”. Please upgrade the Syncfusion NuGet to achieve your requirement. 
On your provided code snippet, you have set the “PageCount” but if it’s not needs when we are using the normal page. If we use the OnDemandLoding support in SfDataPager mean, we have set the PageCount. 
Please follow the refer the below code snippet and sample,  
Code Snippet [C#] 
         <RowDefinition Height="Auto" /> 
         <RowDefinition Height="*" /> 
     <StackLayout Grid.Row="0"> 
         <sfPager:SfDataPager x:Name="dataPager" 
                         Source="{Binding OrderInfoCollection}" 
     <sfGrid:SfDataGrid Grid.Row="1" 
                        ItemsSource="{Binding PagedSource, Source={x:Reference dataPager}}"> 
             <sfGrid:GridNumericColumn MappingName="OrderID"/> 
             <sfGrid:GridTextColumn MappingName="CustomerID"/> 
             <sfGrid:GridTextColumn MappingName="ShipCity"/> 
             <sfGrid:GridTextColumn MappingName="ShipCountry"/> 
Note: Requirement has been checked with Xamarin. Forms version 3.6 and Syncfusion NuGet version  
We hope this helps. Please let us know, if you need any further assistance. 
Balasubramani Sundaram. 

Live Chat Icon For mobile
Up arrow icon