Access control inside UserControl (ASCX) from Parent Page (ASPX) using JavaScript

1 posts, 0 answers
  1. Patrick
    Patrick avatar
    1 posts
    Member since:
    Nov 2014

    Posted 24 Apr 2015 Link to this post

    I have a ragrid in a aspx page , from this grid by clicking on a row I open a radtooltipmanager that contains a usercontrol . On opening this user control I want to Maintain Scrollbar panel Position.
    I tried to folow this exemples :

    But the problem is that the  panel.scrollHeight return 0, I attached ths screenshot for page and this a part of my code :

        <form id="form1" runat="server">
            <uc1:Name runat="server" ID="ucConusltationLieesCtl" />
            <asp:ScriptManager runat="server" ID="ScriptManager1">
              <script type="text/javascript">
                  function ToCallOnEndRequest(sender, args) {
                      var panel = document.getElementById('<%=ucConusltationLieesCtl.FindControl("Consul_Panel2").ClientID %>');

                      if (panel) {
                        panel.scrollTop = panel.scrollHeight;
                     document.documentElement.scrollTop = yPos;

                  function ToCallOnBeginRequest(sender, args) {
                       yPos = document.documentElement.scrollTop;



Back to Top