This is a migrated thread and some comments may be shown as answers.

Support for master pages in MOSS?

1 Answer 98 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
G7
Top achievements
Rank 1
G7 asked on 06 Dec 2007, 02:57 PM

I am using RadGrid (5.0.1.0) control on a custom page in MOSS with a master page.  When I tried to add ExportToExcel in button click event the event would fire on the first click but on subsequent clicks nothing would happen – all postbacks were suppressed. I tracked the problem to this line of code in the master page:

<form runat="server" onsubmit="return _spFormOnSubmitWrapper();">

_spBodyOnLoadWrapper() doesn’t seem to reset some internal variables in partial post backs.

When I remove the onsubmit event the page seems to works fine (<form runat="server">).

I don’t want to remove it since it’s a standard MOSS master page and it might break some other functionality.

Is there a workaround for this?

Are master pages supported by teleric controls in MOSS?

 

My custom and master pages live in:

\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Dec 2007, 11:25 AM
Hi G7,

I have been researching this and I don't have good news. I think we've hit an IE browser limitation here. SharePoint uses a window.onbeforeunload event handler in order to force users to save pages when they try to navigate away from them, and having that handler breaks all script execution after a postback (the grid export operation).

I think the only way to work around this is to use my colleague Vlad's hack, outlined in this forum thread and export your grid in a new browser window. Or maybe you can do a Response.Redirect in your button click event handler and export from another page.
I hope this information helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Sharepoint Integration
Asked by
G7
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or