RadGrid events in Provider hosted Add-In

1 posts, 0 answers
  1. Kod
    Kod avatar
    14 posts
    Member since:
    Oct 2017

    Posted 26 Oct 2017 Link to this post

    Hello,

    I am new to this forum and using Telerik controls for the first time.

    I am using RadGid in Provider Hosted Add-In and so far could bind the data to it. My questions are:

    1. When i use default ExportToExcel functionality nothing happens.. The page becomes blank after showing RadAjaxLoadingPanel

    I have written below code for that:

    protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
            {          
                if (e.CommandName == RadGrid.ExportToExcelCommandName)
                {
                    RadGridRequests.ExportSettings.Excel.Format = GridExcelExportFormat.Biff;
                    RadGridRequests.ExportSettings.IgnorePaging = true;
                    RadGridRequests.ExportSettings.ExportOnlyData = true;
                    RadGridRequests.ExportSettings.OpenInNewWindow = true;
                }
            }
Back to Top