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

[Solved] Telrik extension for export

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aayushi
Top achievements
Rank 1
Aayushi asked on 01 Sep 2010, 09:01 AM
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.

1 Answer, 1 is accepted

Sort by
0
judowalker
Top achievements
Rank 1
answered on 03 Nov 2010, 10:35 AM
Hi Aayushi,

GridModel is part of the Telerik.Web.Mvc namespace. Add
using Telerik.Web.Mvc;
to your controller class.
Tags
Grid
Asked by
Aayushi
Top achievements
Rank 1
Answers by
judowalker
Top achievements
Rank 1
Share this question
or