Grid In Partial View Demo

3 posts, 1 answers
  1. Sheldon
    Sheldon avatar
    2 posts
    Member since:
    May 2014

    Posted 05 Nov 2014 Link to this post

    Is there a demo of using a Grid in a Partial View where you are sending the view a model that contains an IEnumerable of what you want in the Grid?  If possible I'd like it to show paging and sorting as well.

    I can get this to partially work for me by using BindTo, but once you try to page or sort it does not work out.
  2. Answer
    Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 07 Nov 2014 Link to this post

    Hi Sheldon,

    There are several ways to implement the Grid in a partial view:

    - server bound grid - in this case the widget is rendered on the server and operations such as sorting, paging filtering will require post backs in order grid to be re-rendered
    - ajax bound grid - in this case the grid is bound on the client and for each operation is issue an ajax request to the server for fetching the data
    - grid with local binding - here the grid is rendered on the client from the data which is supplied during the grid declaration.

    I have attached a small sample which demonstrates the above scenario implemented as partials.


    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Sheldon
    Sheldon avatar
    2 posts
    Member since:
    May 2014

    Posted 07 Nov 2014 in reply to Rosen Link to this post

    Rosen,

    Thank you so very much for the reply and working demo.
Back to Top