Pagination is enabled by setting paginator property to true and defining the rows attribute as the number of root level nodes per page.