Dear
i have some issue with Export data from grid to PDF file & CSV file
with PDF: when i export date it come all data not formatted and all data come above some
and it is look like that
================================================
and about CSV file
it is come with Birth date only and all another fields is empty without any data
my code look like
(ASP):
<telerik:RadButton ID="RadBtn_ExportPDF" runat="server" Text="ExportPDF"
onclick="RadBtn_ExportPDF_Click" >
</telerik:RadButton>
<telerik:RadButton ID="RadBtn_ExportExcel" runat="server" Text="ExportExcel"
onclick="RadBtn_ExportExcel_Click">
</telerik:RadButton>
<telerik:RadButton ID="RadBtn_ExportCSV" runat="server" Text="ExportSCV"
onclick="RadBtn_ExportCSV_Click">
</telerik:RadButton>
and in (CS):
protected void RadBtn_ExportPDF_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToPdf();
}
protected void RadBtn_ExportExcel_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToExcel();
}
protected void RadBtn_ExportCSV_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToCSV();
}
public void ConfigureExport()
{
MainGride.ExportSettings.ExportOnlyData = true;
MainGride.ExportSettings.IgnorePaging =true;
}
and in item command :
if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
e.CommandName == Telerik.Web.UI.RadGrid.ExportToWordCommandName ||
e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName )
{
ConfigureExport();
}
i need to your help in that to make data formatted well in Export PDF and to get all data in Export CSV file
Regard
Ahmed Salem
i have some issue with Export data from grid to PDF file & CSV file
with PDF: when i export date it come all data not formatted and all data come above some
and it is look like that
================================================
and about CSV file
it is come with Birth date only and all another fields is empty without any data
my code look like
(ASP):
<telerik:RadButton ID="RadBtn_ExportPDF" runat="server" Text="ExportPDF"
onclick="RadBtn_ExportPDF_Click" >
</telerik:RadButton>
<telerik:RadButton ID="RadBtn_ExportExcel" runat="server" Text="ExportExcel"
onclick="RadBtn_ExportExcel_Click">
</telerik:RadButton>
<telerik:RadButton ID="RadBtn_ExportCSV" runat="server" Text="ExportSCV"
onclick="RadBtn_ExportCSV_Click">
</telerik:RadButton>
and in (CS):
protected void RadBtn_ExportPDF_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToPdf();
}
protected void RadBtn_ExportExcel_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToExcel();
}
protected void RadBtn_ExportCSV_Click(object sender, EventArgs e)
{
ConfigureExport();
MainGride.MasterTableView.ExportToCSV();
}
public void ConfigureExport()
{
MainGride.ExportSettings.ExportOnlyData = true;
MainGride.ExportSettings.IgnorePaging =true;
}
and in item command :
if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
e.CommandName == Telerik.Web.UI.RadGrid.ExportToWordCommandName ||
e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName )
{
ConfigureExport();
}
i need to your help in that to make data formatted well in Export PDF and to get all data in Export CSV file
Regard
Ahmed Salem