Hello everyone,
The previous concerns about built-in Blazor ListView selection are no longer valid, so we are re-opening this request.
Regards,
Dimo
Progress Telerik
Hi Dale,
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.
This key difference between the frameworks is why the Blazor ListView cannot offer an out-of-the-box selection feature and why the app must implement it. You can find an example of doing that in this sample project: https://github.com/telerik/blazor-ui/tree/master/listview/item-selection
Thus, I must mark this as "Declined" because there isn't a way for the component to do this on its own.
Regards,
Marin Bratanov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.