Our pure JavaScript Scheduler component


Post by luisbulaong »

Hi dev,

I'm developing a feature where I want to focus (scroll then highlight) on the event upon searching, however the ScrollRowIntoView grid function doesn't work and I don't get any error.

To give you some ideas, I'm using the react drag from grid example and I've integrated the grouping functionality in the unassigned task grid.

The goal is to collapse the group(if not yet collapsed) then scroll and highlight the event in the unassigned task panel.

I hope you could take a look at this, Thanks.


Post by mats »

Sorry it's not quite clear what you need. Please specify more clearly what you need from the API to solve your task.


Post by luisbulaong »

Currently we have a real time update functionality, and we're showing a notification every time the scheduler receives an update.

What we want is to scroll event into the view and highlight it when we click on the notification.

The scrollEventIntoView function works fine in scheduler but not in the grid (unassigned task grid), we've also tried the ScrollRowIntoView function but it doesn't also work.


Post by mats »

Please describe how it 'doesn't work'. Works fine here: https://bryntum.com/examples/grid/bigdataset/

grid.scrollRowIntoView(99)

Post by luisbulaong »

Grid is not scrolling and row is not highlighted, could it be because the rows are grouped?


Post by mats »

Can you reproduce this in our grouping sample?


Post by luisbulaong »

we're now able to make it work, however store function findByField is not returning the event data when the group is folded or closed. Is there any other way to get the event index?


Post by mats »

we're now able to make it work, however store function findByField is not returning the event data when the group is folded or closed. Is there any other way to get the event index?

Works fine, please try here: https://bryntum.com/examples/scheduler/grouping/

scheduler.collapseAll()

scheduler.eventStore.findByField('name', 'Sick leave')

Post by luisbulaong »

yes it is working in scheduler grouping example, but not in grid grouping example https://bryntum.com/examples/grid/grouping

If group is not collapse, findByField functions return the row data

Selection_405.png
Selection_405.png (64.44 KiB) Viewed 2693 times

But if the groups are collapsed, it is returning an empty array

Selection_406.png
Selection_406.png (59.1 KiB) Viewed 2693 times

Post by alex.l »

Hi luisbulaong,

By default store contains only visible records.
Please check https://www.bryntum.com/docs/scheduler/#Core/data/mixin/StoreSearch#function-query
searchAllRecords param does the job.
But it would be good to have this flag in findByField as well. Here is a ticket: https://github.com/bryntum/support/issues/841

All best,
Alex

All the best,
Alex


Post Reply