RadGrid export to CSV footer total problem

3 posts, 0 answers
  1. Igor
    Igor avatar
    2 posts
    Member since:
    Nov 2010

    Posted 09 Nov 2010 Link to this post


    I have problem with export to csv footer total.In scv file not display footer total.
    When I export the same data into pdf, i have no problem.


  2. Daniel
    Daniel avatar
    4949 posts

    Posted 10 Nov 2010 Link to this post

    Hello Igor,

    We do not export the footer item since the CSV file does not support footers. You could add the desired row manually in the GridExporting event:
    protected void RadGrid1_GridExporting(object sender, GridExportingArgs e)
        if (e.ExportType == ExportType.Csv)
            string footer = "";
            GridFooterItem footerItem = RadGrid1.MasterTableView.GetItems(GridItemType.Footer)[0] as GridFooterItem;
            foreach (GridColumn column in RadGrid1.MasterTableView.RenderColumns)
                if (column.Visible)
                    footer += String.Format("\"{0}\",", footerItem[column.UniqueName].Text.Replace(" ", ""));
            e.ExportOutput += footer.TrimEnd(',');

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. suyash
    suyash avatar
    1 posts
    Member since:
    May 2016

    Posted 17 May 2016 in reply to Daniel Link to this post

    Hi Daniel , I just wanted to know that at which tab you pastes this code, It will be very kind of you if you attach a snapshot supporting your reply , thanks and regards.
Back to Top