Data binding for Azure DocumentDB

6 posts, 0 answers
  1. Howard
    Howard avatar
    1 posts
    Member since:
    Apr 2016

    Posted 19 Jun 2016 Link to this post

    I created a standard MVC web app in VS 2015

    I want to use the Grid and can not figure out how to data bind it 

     

  2. Pavlina
    Admin
    Pavlina avatar
    6165 posts

    Posted 22 Jun 2016 Link to this post

    Hi,

    You can refer to the article below for detailed information how to add DocumentDB to your MVC web application project:
    https://azure.microsoft.com/en-us/documentation/articles/documentdb-dotnet-application/

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Grahame
    Grahame avatar
    8 posts
    Member since:
    Nov 2015

    Posted 05 Oct Link to this post

    I'm also looking at using an ASP.NET core WebAPI to allow binding of the Grid to DocumentDB/CosmosDB, Cosmos DB doesn't supports the LINQ generated syntax for SKIP when using paging; is there away to tell the grid to perform paging but remove the page number and/or first/last buttons so a using may only navigate forward/back using the cosmos continuation tokens.   IMHO this is a major feature that Cosmos DB has missed out :'(  not sure how you navigate large datasets without a SKIP/TOP and query nesting server side.

     

  4. Pavlina
    Admin
    Pavlina avatar
    6165 posts

    Posted 10 Oct Link to this post

    Hi Grahame,

    Basically you can achieve your goal by applying a custom logic that returns the data as it is expected by the grid. You should also configure the read method to pass the skip and take parameters on the server to process the request.

    Regards,
    Pavlina
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Grahame
    Grahame avatar
    8 posts
    Member since:
    Nov 2015

    Posted 10 Oct in reply to Pavlina Link to this post

    I have a custom WebAPI controller then does this; however paging using SKIP results in errors as CosmosDB hasn't support for the SKIP; I'm looking for away to do paging in a forward only manor showing page numbers (buttons) that are disabled; given CosmosDB has limited linq support.
  6. Pavlina
    Admin
    Pavlina avatar
    6165 posts

    Posted 12 Oct Link to this post

    Hello,

    I am afraid that this is out of our scope. According to the following Azure feedback item Support for Skip is under review, so you can vote for it and hopefully it will available soon:
    https://feedback.azure.com/forums/263030-azure-cosmos-db/suggestions/6350987--documentdb-allow-paging-skip-take

    Regards,
    Pavlina
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top