Page 1 of 2

scrollend() does not fire with bryntum partner

Posted: Tue Aug 20, 2019 11:43 am
by Luffy
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

Re: scrollend() does not fire with bryntum partner

Posted: Tue Aug 20, 2019 9:58 pm
by mats
You should not listen on window. Instead:
scheduler.subGrids.normal.scrollable.on('scrollend', console.log)
Docs: https://bryntum.com/docs/scheduler/#Common/helper/util/Scroller#event-scrollend

Re: scrollend() does not fire with bryntum partner

Posted: Thu Aug 22, 2019 1:20 pm
by Luffy
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.41 KiB) Viewed 1781 times
subGrids12.JPG.png
subGrids12.JPG.png (14.92 KiB) Viewed 1781 times
Your guidance is highly appreciated.
Best regards,
Anuradha

Re: scrollend() does not fire with bryntum partner

Posted: Thu Aug 22, 2019 1:32 pm
by mats
Good finding, fixed now in our sources and will be part of next nightly build + release

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 7:45 am
by garysemple
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.53 KiB) Viewed 1767 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

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 10:08 am
by mats
Actually, you could use getSubGrid instead:
/**
     * 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];
    }

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 11:38 am
by Luffy
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.12 KiB) Viewed 1758 times
I have bind the "scrollend" event to the subgrid, but the event does not triggered.
subgrid45.JPG
subgrid45.JPG (22.73 KiB) Viewed 1758 times
Best regards,
Anuradha

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 12:07 pm
by mats
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:
scheduler.getSubGrid('normal').scrollable.on('scrollend', console.log)

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 12:39 pm
by Luffy
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.27 KiB) Viewed 1757 times
scrollable does not exist4.JPG
scrollable does not exist4.JPG (39.28 KiB) Viewed 1757 times
Best regards,
Anuradha

Re: scrollend() does not fire with bryntum partner

Posted: Mon Aug 26, 2019 1:08 pm
by mats