[CLOSED] Grid to Excel

  1. #1

    [CLOSED] Grid to Excel

    I am using Ext.NEt 2.1, Razor and MVC. I have several grid panels where I need to provide functionality to export the grids to Excel. Can you give me an MVC, best-practice way to do this? Also, all my grids have paging, but it is done at the client. Further, I need my grids to export the data exactly as they are laid out in the grid - with the exception that there will be no breaks or visual indication of paging. This means that if a user has changed the sort or column order of a grid, that should be reflected in the Excel output.

    Thanks in advance.
    Last edited by Daniil; Aug 26, 2012 at 10:48 AM. Reason: [CLOSED]
  2. #2
    The best place to start would be investigating the samples within the Examples Explorer. I believe each of these scenarios are demonstrated, although the code samples would have to be adapted to MVC. That's a fairly simple process though.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Hi,

    Just some links.

    Here is the thread with an example for Ext.NET v1.
    http://forums.ext.net/showthread.php?14196

    Here is the related Ext.NET v2 thread.
    http://forums.ext.net/showthread.php?20352
  4. #4
    Here is the related Ext.NET v2 thread.
    http://forums.ext.net/showthread.php?20352
    This link is VERY helpful. However there are 2 lines of code that are causing an issue:

    writer = XmlWriter.Create(s, settings);                     
    xt.Transform(xml, writer);
    There is no create on the XMLWriter and the transform is stating to matching definition. I am using 2.1RC. Have these functionalities been moved or reworked?
  5. #5
    XmlWriter is class from System.Xml assembly

Similar Threads

  1. Export grid panel data to excel
    By sumesh in forum 1.x Help
    Replies: 1
    Last Post: Sep 23, 2013, 9:07 AM
  2. Export the grid to excel
    By Mr.Techno in forum 1.x Help
    Replies: 34
    Last Post: Aug 23, 2013, 11:39 AM
  3. [CLOSED] Import Excel into Grid
    By mcfromero in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 13, 2012, 2:22 PM
  4. Excel Export in Grid
    By BLOZZY in forum 1.x Help
    Replies: 0
    Last Post: Oct 09, 2011, 11:37 AM
  5. Paste from Excel into Grid?
    By rthiney in forum 1.x Help
    Replies: 3
    Last Post: Sep 14, 2009, 7:11 PM

Tags for this Thread

Posting Permissions