Postlagerkarte / blazor-dragdrop

Easy-to-use Drag and Drop Library for Blazor
MIT License
407 stars 97 forks source link

Multiple Dropzone and Linq Items not work #145

Open schorges opened 2 years ago

schorges commented 2 years ago

How can i only show the selected items from list?

Id like to drag Items in a Table with cols and rows, on change Items from itemas to ausgewahlteMitglieder i have in all cols and rows the same list ....

@foreach(var line in timeRow)
        {                         
            <div class="row">                 
                <div class="col">
                    @line
                </div>
                @foreach(var spal in spalten)
                {
                    var itemas = ausgewahlteMitglieder.Where(x => x.PlanerTime == spal+line).ToList();
                    <div class="col">  
                        <Dropzone Items="itemas" TItem="MitgliederListe" OnItemDrop="(i) => i.PlanerTime = spal+line">
                           @context.UserVorname
                        </Dropzone>
                    </div>
                }
            </div>