Postlagerkarte / blazor-dragdrop

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

Not able to access dragdropservice #137

Open snehabihani opened 2 years ago

snehabihani commented 2 years ago

Can you please help . I am not able to access drag and drop service

ViRuSTriNiTy commented 2 years ago

Can you please explain in detail what the issue is?

snehabihani commented 2 years ago

I am not able to inject dragdropservice in my razor page. saying it is inaccessible due to protection level. I have installed Nuget for my Web assembly app.

On Wed, Mar 9, 2022 at 6:20 PM ViRuSTriNiTy @.***> wrote:

Can you please explain in detail what the issue is?

— Reply to this email directly, view it on GitHub https://github.com/Postlagerkarte/blazor-dragdrop/issues/137#issuecomment-1062889046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4MS65HD6XK63AUGU22TBDU7CNAXANCNFSM5QI4UISQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ViRuSTriNiTy commented 2 years ago

Please show us a call stack to allow narrowing down the issue.

snehabihani commented 2 years ago

image Check the error window.

ViRuSTriNiTy commented 2 years ago

This service class is used by the DropZone component internally and you should not try to access it. The documentation states clearly what steps are required to get started, injecting DragDropService is not one of these steps.

So, why do you want to inject this service?

snehabihani commented 2 years ago

Then How to get position where the element get dropped.. In ItemDrop() we are getting element which we are dragging. I want the element where it gets dropped. how to get that element? Can you please help?

On Thu, Mar 10, 2022 at 2:48 AM ViRuSTriNiTy @.***> wrote:

This service class is used by the DropZone component internally and you should not try to access it. The documentation states clearly what steps a required to get started, injecting DragDropService is not one of these steps.

So, why do you want to inject this service?

— Reply to this email directly, view it on GitHub https://github.com/Postlagerkarte/blazor-dragdrop/issues/137#issuecomment-1063380182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4MS66UWQVOUEBNSP6WCIDU7EISRANCNFSM5QI4UISQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ViRuSTriNiTy commented 2 years ago

DropZone provides the event OnItemDrop for this.

Currently the event only sends the dragged item so you need to assign individual event handlers per drop zone to know which drop zone is the target.

snehabihani commented 2 years ago

Hi I have developed something like this "https://blazordragdrop.azurewebsites.net/displaygrid". So I want the item where item got dropped. not the item which is dragged. Is there any way?