This is a migrated thread and some comments may be shown as answers.

Grid In Partial View Demo

2 Answers 791 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sheldon
Top achievements
Rank 1
Sheldon asked on 05 Nov 2014, 07:39 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 07 Nov 2014, 04:48 PM
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.

 
0
Sheldon
Top achievements
Rank 1
answered on 07 Nov 2014, 05:29 PM
Rosen,

Thank you so very much for the reply and working demo.
Tags
Grid
Asked by
Sheldon
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Sheldon
Top achievements
Rank 1
Share this question
or