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

MVC grid features vs. AJAX grid features

3 Answers 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 07 Apr 2011, 08:18 PM
I prefer ASP.NET MVC, particularly with Razor, to WebForms. However, if I'm going to attempt to leverage the features of Telerik grids for things like exporting, etc, it appears the MVC grid lags far behind the AJAX grid in terms of functionality.

Case in point: the custom code and reliance on an open source third party project for exporting to ONLY Excel for this MVC grid sample: http://www.telerik.com/support/kb/aspnet-mvc/grid/export-to-excel.aspx vs. the many, built-in export options of the AJAX grid: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx

There is also the huge disparity of control availability b/n MVC and AJAX.

In this instance, I don't know why exporting features would have such a disparity, or why the Excel support in the AJAX can't be used in the MVC grid but it looks like if we really want to take advantage of Telerik web client controls, we're better served by using the AJAX platform rather than the MVC platform, which lags far behind.

Am I missing something, or am I correct in concluding the features of the MVC toolset lag way behind the AJAX toolset? This seems strange to me, since I've found it far easier to extend MVC with extension components and helpers than extending WebForms.

Thanks for any comments.

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 13 Apr 2011, 09:40 AM
Hi John,

Indeed the RadGrid for ASP.NET AJAX has more build - in features than the MVC grid. In particular the RadGrid has build -in support for exporting, however exporting the MVC grid is more flexible because you could export directly the Model or you could use any exporting library you want. Also on the following link you could find online example which demonstrates CSV Export in MVC grid:
http://demos.telerik.com/aspnet-mvc/grid/customcommand

Best wishes,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
John
Top achievements
Rank 1
answered on 13 Apr 2011, 05:46 PM
Thanks for the reply. I've seen the other export examples. I certainly wouldn't want to custom code exporting CSV or Excel for each Grid, as those examples you cite describe. I don't understand why you don't have the same export functionality already available in the MVC grid that's in the RadGrid. If I had access to the source code for both grids, I'm sure I could implement identical exporting in both in less than a day.
0
Radoslav
Telerik team
answered on 14 Apr 2011, 08:02 AM
Hello John,

You could download the controls' source code of the both products from Your account -> Download Installer and Other Resources button ->  Browse all product files  Link ->Source code. Also if you achieve the desired functionality and implement such a functionality you can earn up to 10,000 Telerik Points by submitting it as a Code Library to the Telerik's MVC forums.

Kind regards,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
John
Top achievements
Rank 1
Share this question
or