Last Updated: 21 Sep 2023 11:08 by Martin Ivanov
Martin Ivanov
Created on: 21 Sep 2023 11:08
Category: DataPager
Type: Bug Report
DataPager: DataContext change updates the PageIndex in the view model
Changing the DataContext at runtime, will trigger reset of the collection view in the internal view model of RadDataPager. This sets the PageIndex to -1 just the before the context is actually changed, which leads to wrong value in the view model.

To work this around, instead of using data bindings for the panging properties (PageIndex, PageSize, ItemCount), sync them with the view model, manually in code-behind.