This is a migrated thread and some comments may be shown as answers.

DataPager on DataGrid.IsSynchronizedWithCurrentItem not working

2 Answers 76 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 11 Jan 2021, 11:47 PM

     Hi,

I've added a DataPager to a DataGrid, and now the DataGrid.IsSynchronizedWithCurrentItem property is not working.  How can I resolve this?  Below is my code...

<DockPanel LastChildFill="True">
    <telerik:RadDataPager x:Name="radDataPager"
    DockPanel.Dock="Bottom"
                          Source="{Binding GridData}"
                          PageSize="100"
                          DisplayMode="All"
                          AutoEllipsisMode="After"
                          NumericButtonCount="5"/>
    <telerik:RadGridView x:Name="radGridView"
                         Margin="0"
                         Width="{Binding ElementName=GridViewGrid, Path=ActualWidth}"
                         EnableColumnVirtualization="True"
                         EnableRowVirtualization="True"
                         AlternateRowBackground="AliceBlue"
                         ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
                         SelectionUnit="FullRow"
                         RowIndicatorVisibility="Collapsed"
                         GridLinesVisibility="None"
                         ScrollMode="Deferred"
                         FilteringMode="Popup"
                         CanUserFreezeColumns="False"
                         AutoGenerateColumns="True"
                         ColumnWidth="Auto"
                         IsSynchronizedWithCurrentItem="True"
                         IsReadOnly="True"
                         IsTabStop="False"
                         ValidatesOnDataErrors="InEditMode"
                         amUI:GridViewEventManager.IsEnabled="True"
                         amUI:LookupTextBoxFilterBehavior.LookupTextBox="{Binding ElementName=LookupTextBox}">
    </telerik:RadGridView>
</DockPanel>

 

2 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 14 Jan 2021, 12:52 AM
Is anyone at Telerik going to respond?
0
Vladimir Stoyanov
Telerik team
answered on 14 Jan 2021, 10:54 AM

Hello Steve,

Thank you for the shared code snippet. 

I tested the described scenario on my end, however I was not able to observe a problem with the IsSynchronizedWithCurrentItem property. On my end the SelectedItem and CurentItem objects are synchronized as intended. 

That is why I am attaching the sample project that I used for testing purposes. Can you check it out and see how it differs from the setup on your end? Should you need any further assistance, can you let me know how I can replicate the scenario in the shared sample project? Note, that you can also update the project and send it over in a new support ticket (since project files cannot be attached to forum posts). This will hopefully allow me to investigate the scenario and better assist you. 

I am looking forward to your reply. 

Regards,
Vladimir Stoyanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DataPager
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or