© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
4 replies
Saiyanslayer

MudBlazor DropContainer not triggering ItemDropped

I have the following MudBlazor MudDropContainer:
<!-- Dropzone for reorganizing and editing the Check Items -->
<MudDropContainer T="CustomDropItem" @ref="_dropContainer" Class="align-center justify-start" 
        Items=@_items
        ItemPicked=@ItemSelected
        ItemDropped=@ItemUpdated
        ItemsSelector=@((item, dropzone) => item.Selector == dropzone)
        ApplyDropClassesOnDragStarted
        >
    <ChildContent>
         <MudDropZone T="CustomDropItem" Class="flex-grow-1" AllowReorder Identifier=@DropzoneId />
    </ChildContent>
    <ItemRenderer>
         <MudStack StretchItems=@StretchItems.Start Class="ma-3">
            <MudStack Row Class="py-n3 my-0" Style=@($"background-color: {context.Value.Colour};")
                AlignItems="AlignItems.Center" Justify="Justify.FlexStart">

                <MudPopover Class="mud-theme-default py-1 my-1" Open="@(_editIndex == context.SortOrder)"
                    AnchorOrigin="Origin.CenterLeft" TransformOrigin="Origin.CenterRight">

                    <!-- Content based on the type of TaskValue -->
                </MudPopover>
            </MudStack>
        </MudStack>
    </ItemRenderer>
</MudDropContainer>
<!-- Dropzone for reorganizing and editing the Check Items -->
<MudDropContainer T="CustomDropItem" @ref="_dropContainer" Class="align-center justify-start" 
        Items=@_items
        ItemPicked=@ItemSelected
        ItemDropped=@ItemUpdated
        ItemsSelector=@((item, dropzone) => item.Selector == dropzone)
        ApplyDropClassesOnDragStarted
        >
    <ChildContent>
         <MudDropZone T="CustomDropItem" Class="flex-grow-1" AllowReorder Identifier=@DropzoneId />
    </ChildContent>
    <ItemRenderer>
         <MudStack StretchItems=@StretchItems.Start Class="ma-3">
            <MudStack Row Class="py-n3 my-0" Style=@($"background-color: {context.Value.Colour};")
                AlignItems="AlignItems.Center" Justify="Justify.FlexStart">

                <MudPopover Class="mud-theme-default py-1 my-1" Open="@(_editIndex == context.SortOrder)"
                    AnchorOrigin="Origin.CenterLeft" TransformOrigin="Origin.CenterRight">

                    <!-- Content based on the type of TaskValue -->
                </MudPopover>
            </MudStack>
        </MudStack>
    </ItemRenderer>
</MudDropContainer>


This was working in v6 but since I updated to v7, I cant get ItemDropped to trigger. The transaction keeps failing.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MudBlazor darkmode toggle not working
C#CC# / help
2y ago
MudBlazor on net8, MudSelect not working
C#CC# / help
3y ago
MudBlazor exception with MudDataGrid
C#CC# / help
2y ago
EventHandler not triggering.
C#CC# / help
3y ago