RadGrid hooked up to a SQLDataSource. This is part of a utilitarian admin interface. The data is simple zip code information. It is an SSL protected website with BASIC windows authentication on IIS6. When I click on Export to Excel(or Word, etc..) the username/password credentials prompt comes back up. If the user re-enters their information, the download completes successfully. I don't want the prompt to re-appear.
My thought was that it may have something to do with where the RadGrid stores its temporary file on the server before export, or is it streamed in memory?
Any help is appreciated.
12 Answers, 1 is accepted
The only file format we store temporary files for, is PDF. The contents for the rest of the export formats are generated in memory.
If you submit a support ticket with reference to this thread I will send you a special test project that will help you identify the issue.
Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
In my VS2010 environment, when I Export to Excel from a radgrid, I am prompted for credentials to localhost (see attached screenshot).
I am using IE9.
Any word as to why?
I am using telerik version
2011.2.712.40
Thanks,
Steele.
-- Edit
The strange thing is, if I just cancel out from the prompt without entering any username/password info, the file is opened anyway. Weird.
The prompt appears when the user selects OPEN.
No prompt appears when saving the file.
Any word as to why this is happening?
Thanks,
Steele.
See if setting the openinnewwindow=true addresses this.
Did you have a chance to debug my code locally? If so, what happened?
Also, the suggestion posted by Bruno is worth trying.
Best regards,
Daniel
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
I gave this sample project to Scott (the op), sorry for the confusion. Please feel free however, to submit a support ticket and I will send the same code to you if you need to test it at your side.
I guess the problem is (as mentioned by Scott and Bruno) that the browser (IE) tries to open the file within the same window (inline mode).
Best regards,
Daniel
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
I am creating my RadGrid programmatically, and I am having trouble identifying where to set the property openinnewwindow.
I am using :
rg.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true;
to allow the export.
Where can I find the openinnewwindow?
Thanks,
Steele.
This is only being used in a backend admin interface currently. I was unable to test the sample code locally as it did not precisely mimic my production environment.
Is the failure to open inline a browser or an authentication problem? OR, why does this happen?
Thanks for the help.
Scott
It is not failure to use the inline (OpenInNewWIndow=false) mode but there is no real benefit from this setting, because the functionality that allows the excel file to be embedded in the browser is disabled by default.
In fact, it would be better to use the attachment mode due to the fact that it works consistently in all browsers. For instance, Internet Explorer ignores the file name when the content-disposition header is set to inline.
Sample code showing how to set OpenInNewWindow property:
RadGrid1.ExportSettings.OpenInNewWindow = true;
...
<
ExportSettings
OpenInNewWindow
=
"true"
/>
</
telerik:RadGrid
>
Regards,
Daniel
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Yes, setting this property removed the credential prompting. It is now working as expected.
Appreciate the help and code!
Steele.