Styling sfDataPager

Hi,

assuming we have 150 pages, what we want is something like that _

< 1 2 3 4 .. 150 >
< 1 .. 8 9 10 11 .. 150 >
< 1 ..  147 148 149 150 >

So, the MoveToFirst Button should always shows 1 and MoveToLast always the Last Pagenumber (instead of the arrows).
But even, if we manage to show the PageNumber in First/LastButton - We also would need to hide the first and last Button in the numeric-Buttonlist,
we of course dont want:

< 1 1 2 3 .. 150>

how to do that ?

kind regards


5 Replies 1 reply marked as answer

SS Susmitha Sundar Syncfusion Team June 18, 2020 07:50 AM UTC

 
Hi Ulfried, 
 
Thank you for using Syncfusion controls. 
 
You can achieve your requested behavior “MoveToFirst Button should always shows 1 and MoveToLast always the Last Pagenumber (instead of the arrows) by DisplayMode property. Please refer the below Ug link, 
 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Susmitha S 



UK Ulfried Koch June 18, 2020 09:07 AM UTC

Hi,


thanks for reply. Which one ?  I do not see anything which would fit here.
Note, that while your in the middle of all pages, the first and last button should be stay always visible. 

< 1 ..  89 90 91 .. 150 >

If I use DisplayMode=Numeric, I would only have:

< .. 89 90 91 .. >  which is not exactly what I want.

kind regards




SS Susmitha Sundar Syncfusion Team June 19, 2020 03:13 PM UTC

Hi Ulfried,   
   
Thank you for the update. 
   
Currently, we don’t have support for your requested behavior “MoveToFirst Button should always shows 1 and MoveToLast always the Last Pagenumber (instead of the arrows) we are checking the feasibility to achieve your requested behavior. We will validate and update you the details on or before June 23, 2020.   
   
We appreciate your patience until then.   
   
Regards,   
Susmitha S   



SS Susmitha Sundar Syncfusion Team June 23, 2020 04:29 PM UTC

Hi Ulfried,   
   
Sorry for the inconvenience caused.   
   
We need two more days to checking the feasibility of your requested behavior “MoveToFirst Button should always shows 1 and MoveToLast always the Last Pagenumber (instead of the arrows)”. We will update you the details on or before June 25, 2020.   
   
We appreciate your patience until then.   
   
Regards,   
Susmitha S   



SS Susmitha Sundar Syncfusion Team July 2, 2020 10:39 AM UTC

Hi Ulfried,    
 
Thank you for your patience. 
 
As per our architecture, we don’t achieve your requested behavior “MoveToFirst Button should always shows 1 and MoveToLast always the Last Pagenumber (instead of the arrows)”.  We have provided the template of SfDataPager. Using this you can rearrange the buttons of first and last, previous and next buttons. But you cannot change the Numeric buttons behavior. 
 
  
Please let us know if you need further assistance on this. 
 
Regards, 
Susmitha S 
 


Marked as answer
Loader.
Up arrow icon