I've got a radgrid in a dnn module/user control and I want to add exporting to pdf. The module is ajax enable via dnn and I'm pretty sure my problem is related to not doing a full postback. Nothing happens when you click the export to pdf button. I'm trying to register the export to pdf button to postback on the page load with no luck. For some reason I can't find the control.
Any help is appreciated, thanks.
Any help is appreciated, thanks.
protected void Page_Load(System.Object sender, System.EventArgs e)
{
RadGrid InventoryGrid = (RadGrid)InventoryRadGrid;
Control pdfExportButton = (Control)InventoryRadGrid.MasterTableView.FindControl("ExportToPdfButton");
if (pdfExportButton != null)
ScriptManager.GetCurrent(Page).RegisterPostBackControl(pdfExportButton);
else messageLabel.Text = "Export to PDF Control Not Found";
if (!IsPostBack)
{
}
}