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...)