Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
no script references if grid is not visible at first page render
posted

Hi!

 Here's the scenario:

<asp:ScriptManager ID="manager" runat="server" />
<asp:UpdatePanel ID="updPanel" runat="server">
  <ContentTemplate>
    <asp:LinkButton ID="btnShow" runat="server" Text="Show Grid" OnClick="showGrid"></asp:LinkButton>
    <igtbl:UltraWebGrid ID="grid" runat="server" Visible=false >...</igtbl:UltraWebGrid>
  </ContentTemplate>
</asp:UpdatePanel>
<script runat="server"> void showGrid(object sender, EventArgs e) { grid.Visible = true; } </script>
 

So, here grid is not visible on first page rendering - and as I see, no ifragistics script include are added to the page html. When we click a button - ajax postback goes, grid becomes rendered, but still there's no script references, so grid is not functional - no row expanding or paging working and a lot of jscript messages about igtbl_...methods are not defined.

Is there a way to add  all necessary webgrid jscript references manually for page, so we could call them on Page_OnLoad ?

( btw, we recently upgraded from v7.1 to 8.3, andin v.7. everythin was fine. Probably you moved adding script references into Render method or somewhere else, that is not called when grid is not visible, but adding script references do not obey updatePanel postbacks...)

Parents
No Data
Reply
  • 14049
    Offline posted
    Hi,

    I believe we caught that problem recently and the fix for it was
    included into v 8.2 and below hot fix that went out couple of days ago.
    8.3 hot fix is not out yet for another month or so.
    To work it around temporarily I'd suggest setting the JavaScriptFileName
    and JavaScriptFileNameCommon (or use web.config setting) to point to a
    local path, then copy the js files that we provide with installation
    into that path.
    Sorry for inconvenience.
Children