scrollend() does not fire with bryntum partner

Our pure JavaScript Scheduler component
User avatar
Luffy
Premium Member
Premium Member
Posts: 65
Joined: Tue May 21, 2019 7:54 am

scrollend() does not fire with bryntum partner

Post by Luffy » Tue Aug 20, 2019 11:43 am

HI,
We have use scheduler 2.1 version with the partner.

I have bind "scroll" event and "scrollend" events to window and "scroll" event fired and works fine. But "scrollend" event does not fire.

Image

Did I miss something here?

This is really important since we are trying to load our data partially to bryntum data stores and load new data by capturing "scrollend" event.

Your guidance is highly appreciated.

Anuradha
Attachments
scrollend.JPG
scrollend.JPG (15.9 KiB) Viewed 160 times

User avatar
mats
Core Developer
Core Developer
Posts: 14658
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scrollend() does not fire with bryntum partner

Post by mats » Tue Aug 20, 2019 9:58 pm

You should not listen on window. Instead:

Code: Select all

scheduler.subGrids.normal.scrollable.on('scrollend', console.log)
Docs: https://bryntum.com/docs/scheduler/#Common/helper/util/Scroller#event-scrollend
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Luffy
Premium Member
Premium Member
Posts: 65
Joined: Tue May 21, 2019 7:54 am

Re: scrollend() does not fire with bryntum partner

Post by Luffy » Thu Aug 22, 2019 1:20 pm

Hi Mats,

Thanks for the reply.

I have already tried that code segment but got following typescript errors. It seems the scheduler version that we got, does not have required typings. (We used scheduler-2.1.2 nightly build version)

I have gone through the typings(scheduler.d.ts) and found out there is no subGrids property.
subGrids13.JPG
subGrids13.JPG (37.51 KiB) Viewed 136 times
subGrids12.JPG.png
subGrids12.JPG.png (14.96 KiB) Viewed 136 times
Your guidance is highly appreciated.
Best regards,
Anuradha

User avatar
mats
Core Developer
Core Developer
Posts: 14658
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scrollend() does not fire with bryntum partner

Post by mats » Thu Aug 22, 2019 1:32 pm

Good finding, fixed now in our sources and will be part of next nightly build + release
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
garysemple
Premium Member
Premium Member
Posts: 1
Joined: Tue May 28, 2019 8:42 am

Re: scrollend() does not fire with bryntum partner

Post by garysemple » Mon Aug 26, 2019 7:45 am

Hi Mats,
I have download the latest night build (scheduler-2.x-2019-08-26-release) and still no luck with the issue. Have you updated the types? I cant find related types in latest scheduler.d.ts.
subGrids14.JPG
subGrids14.JPG (60.67 KiB) Viewed 122 times
I have compared "scheduler-2.x-2019-08-26-release" and "scheduler-2.x-2019-08-23-release" types files.They are identicle.

To move forward, we have to have this change.

your help, highly appreciated.

best regards,
Anuradha

User avatar
mats
Core Developer
Core Developer
Posts: 14658
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scrollend() does not fire with bryntum partner

Post by mats » Mon Aug 26, 2019 10:08 am

Actually, you could use getSubGrid instead:

Code: Select all

/**
     * Returns the subGrid for the specified region.
     * @param {String} region Region, eg. locked or normal (per default)
     * @returns {Grid.view.SubGrid} A subGrid
     * @category SubGrid
     */
    getSubGrid(region) {
        return this.subGrids[region];
    }
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Luffy
Premium Member
Premium Member
Posts: 65
Joined: Tue May 21, 2019 7:54 am

Re: scrollend() does not fire with bryntum partner

Post by Luffy » Mon Aug 26, 2019 11:38 am

Hi Mats,
Thanks for the reply.
I have tried with your suggestion with the following code but didn't have luck. It seems "scrollable" property does not available.
subgrid-33.png
subgrid-33.png (19.17 KiB) Viewed 113 times
I have bind the "scrollend" event to the subgrid, but the event does not triggered.
subgrid45.JPG
subgrid45.JPG (22.78 KiB) Viewed 113 times
Best regards,
Anuradha

User avatar
mats
Core Developer
Core Developer
Posts: 14658
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scrollend() does not fire with bryntum partner

Post by mats » Mon Aug 26, 2019 12:07 pm

Please provide a test case, must be some simple mistake somewhere. You can try this yourself here:https://www.bryntum.com/examples/scheduler/scrollto/

On console:

Code: Select all

scheduler.getSubGrid('normal').scrollable.on('scrollend', console.log)
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Luffy
Premium Member
Premium Member
Posts: 65
Joined: Tue May 21, 2019 7:54 am

Re: scrollend() does not fire with bryntum partner

Post by Luffy » Mon Aug 26, 2019 12:39 pm

Hi Mats,
Its again problem with the typings.
Please have a look at this error.
scrollable does not exist.png
scrollable does not exist.png (15.32 KiB) Viewed 112 times
scrollable does not exist4.JPG
scrollable does not exist4.JPG (39.35 KiB) Viewed 112 times
Best regards,
Anuradha

User avatar
mats
Core Developer
Core Developer
Posts: 14658
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: scrollend() does not fire with bryntum partner

Post by mats » Mon Aug 26, 2019 1:08 pm

Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply