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
115
webdayview scrollposition failed with jquery 2.1.1
posted

Hi,

I'm using the 14.2.20142.2146 version of infragistics web controls.

If I add this line "<script type="text/javascript" src="<%: ResolveUrl("~/Scripts/jquery-2.1.1.js") %>"></script>" to the head of the page the scrollposition=-1 does not funcs but if i delete the script the scrollposition funcs.

Someone can help me? I nedd to use jquery 2.1.1

Thanks!!!!

Parents
  • 4315
    Offline posted

    Hi.

    Thanks for using our product. I will be able to help you better, if you provide me with some more information about the problem you are experiencing, cause I cannot reproduce it. Thank you in advance.

    I'm attaching you the WebDayView configuration that I'm using and I will need to confirm that you are using the same one. This is because I'm not able to reproduce the problem you are having, using the build 14.2.20142.2146, as well as on the latest code. I've also tested in all the browsers and again the scroll is positioned on the first working time slot, as it is said in the documentation. Please, if you can provide me with the code you are using and the browser you are using, this will help me. Have you used old version of our ASP.NET product, and if yes did you experience the same problem there?

    Also including the jQuery should not affect the WebDayView, cause it is not dependent on it. So I will wait for your feedback cause the problem seems strange and you should not experiencing it. Thanks!

    Best regards,

    Nikolay Alipiev

    WebDayView.rar
Reply Children
  • 4315
    Verified Answer
    Offline posted in reply to Nikolay Alipiev

    Hi again.

    The problem with WebDayView in the Firefox browser, is a common problem of Firefox and the scrollTop property. It seems that in a combination with jQuery, this issues occurs. What happens is that after the WebDayView is initialized on the client, then the control is scrolled to desired position, using the scrollTop property. But only in Firefox this is not happening. It's a third-party issue and what we can propose you is a workaround. Please try the following code in your Default.aspx file:

    Code Snippet
    1. <igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server"></igsch:WebScheduleInfo>
    2. <igsch:WebDayView ID="WebDayView1" runat="server" Height="600px" WebScheduleInfoID="WebScheduleInfo1">
    3.      <ClientEvents Initialize="WebDayView1_Initialize" />
    4. </igsch:WebDayView>
    5. <script type="text/javascript">
    6.      function WebDayView1_Initialize(dayView, event) {
    7.          if (window.mozInnerScreenX !== undefined) { // Detect Mozilla Firefox
    8.              setTimeout(function () {
    9.                  dayView.setScrollPosition("430");
    10.                  // $(dayView._divScroll).scrollTop("430"); // Alternative using jQuery
    11.              }, 100);
    12.          }
    13.      }
    14. </script>

    As you see, I'm using the workaround, proposed in the StackOverflow post, and executing it, when the WebDayView is initialized on the client. I hope that this will help you resolve your case. If not, again I will ask you for more details about the browser and the OS you are using.

    Best regards,

    Nikolay Alipiev