I am having a challenge with getting the ExportToExcel() to return all the data in my grid to excel. It works fine in the sense that it grabs the current page of data for download, but that is it. It doesn't bring down everything even by setting the properties as outlined in the Telerik documentation:
The background:
-The grid is populated via AJAX using the RadAjaxManager.
-The properties are set in this method:
public void ConfigureExport()
{
radgridActive.ExportSettings.ExportOnlyData =
true;
radgridActive.ExportSettings.IgnorePaging =
true;
this.radgridActive.ExportSettings.FileName = "ActiveReport";
}
I even went as far as reading this thread and following this example: http://www.telerik.com/help/aspnet-ajax/grdexportwithajax.html
Here is a sample of the code I used to follow this example.
<
telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function mngRequestStarted(ajaxManager, eventArgs)
{
if (eventArgs.get_eventTarget().indexOf("btnExport") != -1)
eventArgs.set_enableAjax(
false);
}
</script>
</telerik:RadCodeBlock>
........
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">
.....
Where "btnExport" is the control that initiates the Export.
No Luck Here either. I am at a loss where to go from here. I'd be happy to supply any information to you that you may need further.
Thank you.