CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

[Improvements Request] Better MudTransferList API

Open thepra opened this issue 5 months ago • 2 comments
trafficstars

Currently the API for this component provides 3 calls to act upon: OnTransferStart StartCollectionChanged EndCollectionChanged

And my use case is around live actions(with API calls) only on the selected items alone(with multiselection), given this premise I don't have explicit ways to figure out which one of the 2-4 buttons are effectively pressed(all 3 of those events are fired always on move) and thus the direction of moving items.

The only way I figured out how to find the direction of the calls is to see which *Changed function is called first and with a bool? startToEnd property set properly, I call the appropriate API endpoint, but the next issue is that the ICollection<T> that's passed in both *Changed functions are the final items collections filled with values and not just the selected ones.

Wouldn't make more sense if the binded collections are separated from the actual collections that are selected thus giving a way to events where the changes to both collections(add/remove) can be handled manually?

thepra avatar Jun 08 '25 21:06 thepra