tags:

views:

13

answers:

2

Hello,

I want to take the export of my telerik grid data.

My question is from that page:So please See the url: http://www.telerik.com/support/kb/aspnet-mvc/grid/export-to-excel.aspx

At the above url page I found the way to export the grid data, but one thing which is not make me clear is that in controller the action Export(int page, string orderBy, string filter){ GridModel model = Model().ToGridModel(page, 10, orderBy, string.Empty, filter); // remaining part }

What is GridModel , if it is in built method , but I don't know how to use it, is there any assembly reference is required to use it? And if it is custom method then what e have to write in it.

A: 

The classes you are looking for are in the Telerik.Web.Mvc assembly.

starskythehutch
A: 

Hello,

Thanks for your answer. I want to know one more thing, In that action method :

Export(int page, string orderBy, string filter) { GridModel model = Model().ToGridModel(page, 10, orderBy, string.Empty, filter); // remaining part }

What is Model(), what we have to write in it. I think it is not just retrieve all the data from table.

Aayushi