We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

See data on scroll shedule to right

Thread ID:

Created:

Updated:

Platform:

Replies:

144725 May 20,2019 06:11 AM UTC May 21,2019 07:23 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
Unknown
Asked On May 20, 2019 06:11 AM UTC

Hello,

is there a possibility to always see data on my schedule? Now when it is scrolled to left - I can see everything, but when it is scrolled to right - i can see only schedule markers but without text:

I want to see in all cases text on my schedule:


Nevitha Ravi [Syncfusion]
Replied On May 21, 2019 07:23 AM UTC

Dear Customer, 

Greetings from Syncfusion Support. 

We have prepared a sample to update the appointment text on scroll which can be viewed from the following link. 

  ngOnInit() { 
    window.addEventListener('scroll', this.scroll, true); 
  } 
 
  ngOnDestroy() { 
    window.removeEventListener('scroll', this.scroll, true); 
  } 
  scroll = (): void => { 
    if (document.querySelector('.e-appointment')) { 
      let left = document.querySelector('.e-content-wrap').scrollLeft; 
      let length = document.querySelectorAll('.e-appointment').length; 
      for (let i = 0; i < length; i++) { 
        let appWidth = (document.querySelectorAll('.e-appointment')[i] as any).offsetWidth 
        let appLeft = (document.querySelectorAll('.e-appointment')[i] as any).offsetLeft; 
        if (appLeft < left && appLeft + appWidth > left) { 
          let wrapLeft = left - appLeft; 
          (document.querySelectorAll('.e-inner-wrap')[i] as any).style.left = wrapLeft.toString() + "px"; 
          (document.querySelectorAll('.e-inner-wrap')[i] as any).style.position = "relative"; 
        } else { 
          (document.querySelectorAll('.e-inner-wrap')[i] as any).style.left = "0px"; 
        } 
      } 
    } 
  }; 

Please try the sample and let us know if you need any further assistance. 

Regards, 
Nevitha 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon