Our pure JavaScript Scheduler component


Post by larissa.maia »

Hi, I'm implementing a search that when clicking on a resource, it scrolls to that resource and selects it. To do that I'm using https://bryntum.com/products/schedulerpro/docs/api/Grid/view/mixin/GridSelection#function-selectRow

I'm also using the group feature, so when the selected resource group is expanded, it works fine. But if the group is collapsed schedulerInstance().selectRow(selectedRecord) selects the record but doens't scroll to or expand the group.

I tried to use expand, scrollResourceIntoView, scrollRowIntoView.. none of them expands the resource group.

Is there a way of doing this without having to change it to use the tree feature?

Thanks!


Post by mats »

You can try this for now, will be documented and improved soon:

        grid.features.group.toggleCollapse(grid.store.getGroupHeaderForRecord(record));

Post Reply