Skip to content

DataPager in markup control #2001

@tomasherceg

Description

@tomasherceg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions