Hi, I would like to display footer with total record. I am successfully display it. However, when i am export to pdf, the correct total show in the footer however, the export does not exporting all record even in the radgrid itself the record has more than one page. Please advise
private int parentAccountWithChildTotalCount = 0;
protected void ParentAccountGridWithChild_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridFooterItem)
{
GridFooterItem footer = (GridFooterItem)e.Item;
Label lblTotalRowCount = new Label();
lblTotalRowCount.Text = "Total Record: " + this.parentAccountWithChildTotalCount.ToString();
footer["Firstname"].Controls.Add(lblTotalRowCount);
}
}
public int ParentAccountWithChildTotalCount
{
set { parentAccountWithChildTotalCount = value; }
}
protected void ParentExportPDFButton_Click(object sender, EventArgs e)
{
ParentAccountWithChild.ExportSettings.ExportOnlyData = true;
ParentAccountWithChild.MasterTableView.ExportToPdf();
}