I created a repro in the branch bug/datapager-in-control for the issue reported on the forum.
DataPager determines the capabilities of the dataset by checking whether the data context implements IPageableGridViewDataSet<IPagingFirstPageCapability> and other *Capability interfaces, and renders the UI based on those capabilities.
The problem is that the DataContextStack in the control has type IPageableGridViewDataSet<IPagingOptions> from the viewmodel directive, but this type doesn't implement those capabilities. Therefore, the condition evaluates to false.
@exyi Is there a way around this? I tried to set the viewmodel to IPageableGridViewDataSet<PagingOptions>, but it throws an invalid cast error.
I created a repro in the branch
bug/datapager-in-controlfor the issue reported on the forum.DataPagerdetermines the capabilities of the dataset by checking whether the data context implementsIPageableGridViewDataSet<IPagingFirstPageCapability>and other*Capabilityinterfaces, and renders the UI based on those capabilities.The problem is that the DataContextStack in the control has type
IPageableGridViewDataSet<IPagingOptions>from the viewmodel directive, but this type doesn't implement those capabilities. Therefore, the condition evaluates tofalse.@exyi Is there a way around this? I tried to set the viewmodel to
IPageableGridViewDataSet<PagingOptions>, but it throws an invalid cast error.