New to Kendo UI for Vue? Start a free 30-day trial
Virtual Scrolling with Grouping
The Kendo UI for Vue Native Grid enables you to use virtualization with grouped data.
To enable grouping:
- Set the
groupable
andgroup
options of the Grid. - Set the
scrollable
option tovirtual
. - Set the
all-grouped-items
so that the scroll experience is as smooth as possible. - Set the
collapsed-groups
so that the collapsed groups are persisted correctly. - Set the
unique-field
to the field that is unique for the items. - Handle the emitted
datastatechange
event. Thedatastatechange
event fires when the user interacts with the Grid by scrolling or changing its groups, then processes the data, and returns the requested page to the Grid. To implement the processing of the data programmatically, send a request to the server to execute the grouping for the current page on server-side, or use theprocess
method of theDataQuery
library which automatically processes the data.
The Grid expects the grouped data to be a collection of GroupResults
.
Example
View Source
Change Theme: