Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SfCalendar] Make draggable & resizable conditional for each event in resource view #2241

Open
kbessemer opened this issue Jan 2, 2025 · 1 comment
Labels
calendar Calendar component waiting for customer response Cannot make further progress until the customer responds.

Comments

@kbessemer
Copy link

Use case

I have a calendar resource view which needs only some events to be draggable and resizable, not all events.

Proposal

When building your event list there should be a draggable and resizable key set to true/false, this should be per event, not global for the entire calendar (and all events). This could be an optional feature that would override the global SfCalendar setting if present in the event object.

@LavanyaGowtham2021 LavanyaGowtham2021 added calendar Calendar component open Open labels Jan 6, 2025
@Kaviyarasansf4298
Copy link

Hi,

We have reviewed your scenario regarding the draggable and resizable conditions. We would like to inform you of the following:

  1. Drag and Drop: In the current SfCalendar implementation, events can be dragged and dropped. However, it is not possible to restrict specific events from being draggable. There is an API called allowDragAndDrop. When set to true, all events can be dragged and dropped. When set to false, this will disable the drag-and-drop functionality for all events.
  2. Resizing: Regarding resizing events depends on the TimeSlot views:
  • In the Day, Week, or Work Week views, events can be resized vertically.
  • In the Month, Timeline Month, Timeline Day, Timeline Week, and Timeline Work Week views, events can be resized horizontally.
  • We can not resize horizontally and vertically the same event in one view.

Note: The drag-and-drop in month view and resize features are not functional on mobile platforms at the moment.

We are considering the ability to restrict drag-and-drop or resizing for specific events as a as improvement with previous FR, which will be included in an upcoming release.

You can also refer the feedback below regards drag and drop behavior.

FR Link: Improve the drag and drop positioning behavior in Flutter | Feedback Portal

To know more about drag add resize of the event, please refer to the blog below:

Blog Link: Reschedule Appointments with Drag-and-Drop and Resizing in Flutter

If you need further assistance or have additional questions, please let us know!

Regards,
Kaviyarasan Arumugam.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component waiting for customer response Cannot make further progress until the customer responds.
Projects
None yet
Development

No branches or pull requests

3 participants