Is it possible to disable panel rearrangement on some panel items?

I have a dashboard which will be used by users, where each user will have different roles.
Some users needs to be able to move certain cards around, but if they try and move a card which has *AllowDraggin* set to false, i don't want that card to move.

Is this possible? I have not been able to find people trying to achieve this yet.


5 Replies 1 reply marked as answer

PM Prasanth Madhaiyan Syncfusion Team January 26, 2024 12:35 PM UTC

Hi Oliver,


Greetings from Syncfusion support.


Based on the shared details, we would like to inform you that, as per the current implementation of the Blazor Dashboard component, we can only enable/disable the AllowDragging property for the entire Dashboard Layout. However, this setting cannot be applied to a specific panel within the Dashboard layout component.


For your reference, we have attached the demo, documentation, and API links.


Demo: https://blazor.syncfusion.com/demos/dashboard-layout/overview?theme=fluent


Documentation: https://blazor.syncfusion.com/documentation/dashboard-layout/getting-started-with-web-app


API: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.SfDashboardLayout.html#properties


Check out the shared details and let us know if you need any further assistance.


Regards,

Prasanth Madhaiyan.



OL Oliver January 31, 2024 08:36 AM UTC

I'm not sure if i explained it poorly, but i will see if i can clarify myself a little better sorry.

So panels crated

https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.DashboardLayoutPanel.html


Have the property *AllowDragging* on them, which when set to false on a specific card, does indeed stop it from being dragged,

while allowing panels which have *AllowDragging* set to true, to be dragged around.

CannotDrag.png


What I am wondering is.

Is it possible to stop a user from moving a panel that has *AllowDragging* set to false with a panel which has *AllowDragging* set to true.


If the user takes a card which they are allowed to drag, and move it over a card they are not, they can still move the card which they are not allowed to drag.

CanDragMovedANoDrag.png

That is what i would like to stop from happening.
Is there a way to achieve this?
TryingToAchieve.png






PM Prasanth Madhaiyan Syncfusion Team February 6, 2024 12:45 PM UTC

Hi Oliver,


Based on the shared details, we understand that you have set the AllowDragging property value to false for one panel, but for the other panels, you have set the AllowDragging property to true. When performing the drag action on a nearby panel, which has the AllowDragging property value set to true, the panel with dragging disabled is being moved at your end. However, we would like to clarify that setting the AllowDragging property to false will only prevent the dragging functionality itself, and it cannot prevent the rearrangement of the panel when a drag action is performed on a nearby panel with the AllowDragging property set to true. This behavior is the default for the Dashboard Layout component.


Additionally, we want to inform you that there is currently no direct support for this requirement, and achieving this in the Blazor Dashboard Layout component is not feasible.


Check out the shared details and let us know if you need any further assistance.


Regards,

Prasanth Madhaiyan.


Marked as answer

OL Oliver February 13, 2024 02:24 PM UTC

Hi Prasanth,

It is quite the shame that it isn't possible, will have to try and find another way to achieve it.


Thanks for getting back to me!



SS Shereen Shajahan Syncfusion Team February 14, 2024 05:17 AM UTC

Hi Oliver,

Thank you for the update. Please get back to us for assistance in the future.

Regards,

Shereen


Loader.
Up arrow icon