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

How to add new row when binding to SfDataPager

Thread ID:





132197 Aug 19,2017 02:16 AM Aug 29,2017 01:21 AM WPF 3
Tags: SfDataGrid
Edwin Kurniawan
Asked On August 19, 2017 02:16 AM

When I bind my sfdatagrid's itemsource to SfDataPager, clicking on the add new row is not doing a thing.
Here's my Xaml :

<sf:SfDataGrid x:Name="dgFileStorage" ItemsSource="{Binding ElementName=pagerDgFileStorage, Path=PagedSource}" Height="Auto" AutoGenerateColumns="False" AllowDeleting="False" AllowEditing="False" AllowResizingColumns="True" AddNewRowPosition="Top">
                    <sf:GridTextColumn MappingName="StorageName" HeaderText="Storage Name" ColumnSizer="Star" TextWrapping="WrapWithOverflow" Width="200" />
                    <sf:GridTextColumn MappingName="FolderPath" HeaderText="Folder Path" ColumnSizer="Star" TextWrapping="WrapWithOverflow" Width="250" />
                    <sf:GridTextColumn MappingName="UserName" HeaderText="Username" TextWrapping="WrapWithOverflow" Width="200" />
                    <sf:GridTextColumn MappingName="StorageSize_Gb" HeaderText="Storage Size" ColumnSizer="Auto" DisplayBinding="{Binding Path=StorageSize_Gb, StringFormat='{}{0:N2} GB'}" TextAlignment="Right" />
                    <sf:GridTextColumn MappingName="AvailableSize_Gb" HeaderText="Available Size" ColumnSizer="Auto" DisplayBinding="{Binding Path=AvailableSize_Gb, StringFormat='{}{0:N2} GB'}" TextAlignment="Right" />
                    <sf:GridDateTimeColumn MappingName="CreateDate" HeaderText="Create Date" ColumnSizer="Auto" Pattern="CustomPattern" CustomPattern="dd MMM yyyy hh:mm" />
                    <sf:GridDateTimeColumn MappingName="ModifyDate" HeaderText="Modify Date" ColumnSizer="Auto" Pattern="CustomPattern" CustomPattern="dd MMM yyyy hh:mm" />
            <sf:SfDataPager x:Name="pagerDgFileStorage" PageSize="15" Source="{Binding Detail}"/>

Gnanasownthari Thirugnanam [Syncfusion]
Replied On August 21, 2017 02:18 PM

Hi Michael, 

We have analyzed your query, we are regret to inform you that we don’t have the AddNewRow support while using SfDataPager. 

Please refer the below UG link: 

Gnanasownthari T. 

Edwin Kurniawan
Replied On August 25, 2017 07:19 AM

Oh my bad, i miss reading that part.

Thx for the info.

Gnanasownthari Thirugnanam [Syncfusion]
Replied On August 29, 2017 01:21 AM

Hi Michael, 
Thanks for your update. 
Please let us know if you need any further assistance. 
Gnanasownthari T. 


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.

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.