Hello,
I have a RadGrid, and I'm trying to set it to export to Excel. The problem is I'm getting the widely discussed "The controls collection cannot be modified because the control contains code blocks (i.e. <%...%>)".
After searching around, I understand that any javascript must be within a RadCodeBlock in order to avoid this problem. Easier said than done. Long story short the people that wrote the application I'm working on were completely crazy, they are outputting javascript generated at runtime all over the page, the solution of using RadCodeBLocks it is not really practical or possible in my scenario, I think.
Is there any other way around this to make the export to Excel work ? all I need is to export to Excel, what is the relation between the export to Excel feature, and the JavaScript on the page ?
Thank you very much !!
I have a RadGrid, and I'm trying to set it to export to Excel. The problem is I'm getting the widely discussed "The controls collection cannot be modified because the control contains code blocks (i.e. <%...%>)".
After searching around, I understand that any javascript must be within a RadCodeBlock in order to avoid this problem. Easier said than done. Long story short the people that wrote the application I'm working on were completely crazy, they are outputting javascript generated at runtime all over the page, the solution of using RadCodeBLocks it is not really practical or possible in my scenario, I think.
Is there any other way around this to make the export to Excel work ? all I need is to export to Excel, what is the relation between the export to Excel feature, and the JavaScript on the page ?
Thank you very much !!