I am trying to use a ViewComponent to encapsulate a simple dataset using a pager and datasource. Using the example from https://demos.telerik.com/aspnet-core/pager , I can get the example to work directly in a Razor page. When wrapped in a ViewComponent, the script for the DataSource is never rendered. This appears to be a server-side rendering issue, as the <script>dataSource1=....</script> is never rendered. Also, when doing similar example for Grid and ListView, they work fine.
Should pager and dataSource work in a viewComponent? Maybe I missed something.