WjCollectionViewPager and OData with latest (?) wijmo release

Posted by: develop on 9 April 2018, 9:44 pm EST

    • Post Options:
    • Link

    Posted 9 April 2018, 9:44 pm EST

    Hi,

    I’ve had several problem setting up the enterprise version of Wijmo and with the pager these times, as you may see [url=https://www.grapecity.com/en/forums/wijmo/typings-missing-when-going]here and [url=https://www.grapecity.com/en/forums/wijmo/odatacollectionview-editit]here.

    So I’m still running a quite outdated version of Wijmo.

    Now with the new key registration, it is (partially) going smoother.

    But since then, the WjCollectionViewPager component seems to have ceased doing its job using an ODataCollectionView.

    Here’s the code I used. Nothing transcendental, and the pager used to work that way with both ODataCollectionView AND regular CollectionView.

    <wj-flex-grid #flexGrid
                  [itemsSource]="cv">
    </wj-flex-grid>
    <wj-collection-view-pager [cv]="flexGrid?.collectionView"></wj-collection-view-pager>
    
    export class myComponent implements OnInit {
        cv: ODataCollectionView;
    
        constructor(private readonly articleService: ArticleService) {
        }
    
        ngOnInit() {
            this.cv = this.articleService.getOData();
            this.cv.pageSize = 15;
        }
    }
    

    Now, it doesn’t anymore. It just displays 1/0 in the pager’s input and its buttons do nothing.

    I went from a quite old version to the last one. My package.json went from :

    “wijmo”: “http://prerelease.componentone.com/wijmo5/npm-images/C1Wijmo-Enterprise-Eval-CommonJs-5.20172.359.tgz

    to :

    “wijmo”: “^5.20181.436”

    Switching from one to the other resolves/recreates the issue.

    I did not investigate any further ; if it worked, surely it should still.

    For now, I still can’t deliver a registered version (though we bought a licence months ago) partly due to this issue, so any help would be really pleased.

    Thanks a lot in advance,

    Geoffrey

  • Posted 10 April 2018, 11:05 pm EST

    Hi,

    We are unable to reproduce the problem at our end.

    Here are our implementation steps:-

    • "* “Create flex grid”

    • “Bind grid to ODataCollectionView”

    • “Create WjCollectionView pager”

    • “bind pager to grid.collectionView”

      "

    Please let us know if there are any additional steps to reproduce the problem or edit the following plunk to reflect your problem:-

    http://plnkr.co/edit/id9TGOy45F5TitGjIaRd?p=preview

    ~Manish

  • Posted 22 April 2018, 7:57 pm EST

    Well, I can have it work with the OData Northwind service.

    So maybe there is something to change in my service.

    Yet, it previously did work. And it does not anymore.

    So something changed at some point.

    I’ll let you know if I find something.

    But if you guys could isolate the point of OData configuration that could have that behavior to appear, it would be of great help.

    Thanks for your help.

  • Posted 24 April 2018, 11:37 pm EST

    Ok, I figured out where it blocked.

    My OData service didn’t answer me with the “count” information. It should have.

    It seems the pager didn’t object with that until now. It may have been improved to use that value but then, it doesn’t work without.

    So we updated our service and everything is right now.

    However imho, due to the “not default” nature of that “count” param (which is not as easy/obvious to implement), the precedent behavior could have been maintained as a backup.

  • Posted 29 April 2018, 9:06 pm EST

    Hi,

    Thank you for notifying us.

    We have forwarded this issue to the concerned team for further investigation with tracking id 319862.

    We will let you know as we get any update on this.

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels