ODataVirtualCollectionView

Posted by: zam.abdulvahid on 17 January 2018, 2:03 am EST

    • Post Options:
    • Link

    Posted 17 January 2018, 2:03 am EST

    Hi Team,

    a) Would like to know if there in any way I can add more URL params (say ?zam=123) to the request or rename the existing params and point to a new API end point.

    Current url from wijmo example - http://services.odata.org/V4/Northwind/Northwind.svc/Order_Details_Extendeds?$format=json&$count=true&$skip=104&$top=100

    b) Can I skip tableName while initialising?

    wijmo.odata.ODataVirtualCollectionView(url, ‘tableName’, {});

    Thanks,

    Zam

  • Posted 17 January 2018, 5:29 pm EST

    Hi Zam,

    #1

    This requirement requires comment from the concerned team. Hence, this issue has been forwarded to the concerned team with internal tracking id 305326.

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

    #2

    Currently, this is not possible. TableName is required parameter. Could you please let us know why you would like to skip tableName.

    ~Manish

  • Posted 18 January 2018, 2:00 am EST

    Thanks for the update Manish.

    I was planning to use the ODataVirtualCollectionView with a normal REST API where I will be passing the pagination parameters along with the number of records required.

    say like this - wijmo.odata.ODataVirtualCollectionView(‘http://mysite.com/getRecords/?page=20&count=100’, ’ ', {});

    Am i making a wrong judgement with the use of OData?

    My requirement is that i should be able to do upwards as well as downward lazy loading of data as im having huge number of records in the database. Also the date presented to the grid is after some modification in the service layer. Not directly read and posted to the grid.

  • Posted 18 January 2018, 7:26 pm EST

    Hi Zam,

    As per your requirement, you should use the ServerCollectionView. Please refer to the following demo sample:

    http://demos.wijmo.com/5/PureJS/ServerCollectionView/ServerCollectionView/

    ~Manish

Need extra support?

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

Learn More

Forum Channels