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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to add new UI Controls to SfDataPager control ?

Thread ID:





150595 Jan 13,2020 08:36 AM UTC Jan 15,2020 01:38 PM UTC WPF 3
Tags: SfDataPager
Asked On January 13, 2020 08:36 AM UTC


I'd like to add to the SfDataPager Control the number of the underlying binded records.
To do this I'd need to add new UI controls to the SfDataPager control.
Is it possible to make such a customization ?

Saravanan Ayyanar [Syncfusion]
Replied On January 14, 2020 12:00 PM UTC

Hi Silvio, 
Thank you for using Syncfusion controls. 
We have checked your reported scenario. You can achieve your requirement by pass the PagedSource property to any ItemsControl’s ItemsSource property. We have prepared sample for PagedSource property is bind to the ListBox. Please refer the below code snippet. 
<ListBox ItemsSource="{Binding ElementName=sfDataPager,Path=PagedSource}"> 
                    <Grid Margin="3"> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="*"/> 
                            <ColumnDefinition Width="*"/> 
                        <TextBlock Margin="0,0,20,0" Text="{Binding Data.OrderID}" Grid.Column="0"/> 
                        <TextBlock Margin="0,0,20,0" Text="{Binding Data.CustomerName}" Grid.Column="1"/> 
                        <TextBlock Margin="0,0,20,0" Text="{Binding Data.Country}" Grid.Column="2"/> 
                        <TextBlock Margin="0,0,20,0" Text="{Binding Data.CustomerID}" Grid.Column="3"/> 
                        <TextBlock Margin="0,0,20,0" Text="{Binding Data.ShipCity}" Grid.Column="4"/> 
Sample Link: 
UG Link: 
Please let us know, if you require further assistance on this. 
Saravanan A. 

Replied On January 14, 2020 12:21 PM UTC

Thank you for your reply.
I'll like to add to the datapager control a label that indicates how many items it is binded to, as you can see in the attached image.
Is it possible to make such a customization ?

Attachment: syncfusion_3434e5de.zip

Vijayarasan Sivanandham [Syncfusion]
Replied On January 15, 2020 01:38 PM UTC

Hi Silvio,  
Thank you for contacting Syncfusion support.  
We have analyzed your query and we have modified the sample according to your requirement. Please refer to the modified sample from below location 
Please let us know, if your requirement is different from the above solution. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon