Support for master pages in MOSS?

2 posts, 0 answers
  1. G7
    G7 avatar
    1 posts
    Member since:
    Nov 2007

    Posted 06 Dec 2007 Link to this post

    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

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 07 Dec 2007 Link to this post

    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

Back to Top