Is it possible this control could be updated to support item selection? This ability seems to be supported on frameworks like jQuery (Selection in jQuery ListView Widget Demo | Kendo UI for jQuery (telerik.com)) I know the functionality can be added after the fact but it would be nice if the control had better support for this since this is a common use case for this type of control.
Posted on:22 Apr 2021 18:00
The jQuery widgets are centered around modifying the DOM directly, which is not what Blazor does. On the contrary, in Blazor you can't really touch the DOM directly.
This carries even more weight for templates - once a template is declared, the parent component that renders it cannot influence it in any way, and so there is no way for the ListView for Blazor to go and add the selected class to your own content in the ItemTemplate, nor can it add attributes like aria-selected.