Hi,
i have a problem wih RadGrid when exporting to excel.. The Problem occurs if three things are present:
1) inside the CommandItemTemplate there is a usercontrol
2) inside the UserControl test.ascx there is another control from Prometheus, eg a RadTextbox
3) now when i have a ajaxified grid inside MS-UpdatePanel with UserControl in CommandItemTemplate and use
everything works ok.
But when i try to set to use
i will get an error
Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.
Source Error:
Stack Trace:
can you please have a look whats wrong here?
thanks!
achim
i have a problem wih RadGrid when exporting to excel.. The Problem occurs if three things are present:
1) inside the CommandItemTemplate there is a usercontrol
| <CommandItemTemplate> |
| <uc2:test ID="Test1" runat="server" /> |
| </CommandItemTemplate> |
2) inside the UserControl test.ascx there is another control from Prometheus, eg a RadTextbox
3) now when i have a ajaxified grid inside MS-UpdatePanel with UserControl in CommandItemTemplate and use
| RadGrid1.ExportSettings.IgnorePaging = false; |
But when i try to set to use
| ExportSettings.IgnorePaging = true; |
i will get an error
Script controls may not be registered after PreRender.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.
Source Error:
Line 8: <asp:LinkButton ID="btnExport" runat="server" CommandName="exportexcel" OnClick="btnExport_Click">LinkButton</asp:LinkButton> |
Stack Trace:
[InvalidOperationException: Script controls may not be registered after PreRender.] |
can you please have a look whats wrong here?
thanks!
achim